multimodalart HF staff commited on
Commit
218550a
β€’
1 Parent(s): 49f1f69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ last_merged = False
46
  def update_selection(selected_state: gr.SelectData):
47
  lora_repo = sdxl_loras[selected_state.index]["repo"]
48
  instance_prompt = sdxl_loras[selected_state.index]["trigger_word"]
49
- new_placeholder = "Type a prompt! This style works for all prompts without a trigger word" if instance_prompt == "" else "Type a prompt to use your selected LoRA"
50
  weight_name = sdxl_loras[selected_state.index]["weights"]
51
  updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
52
  is_compatible = sdxl_loras[selected_state.index]["is_compatible"]
 
46
  def update_selection(selected_state: gr.SelectData):
47
  lora_repo = sdxl_loras[selected_state.index]["repo"]
48
  instance_prompt = sdxl_loras[selected_state.index]["trigger_word"]
49
+ new_placeholder = "Type a prompt. This LoRA applies for all prompts, no need for a trigger word" if instance_prompt == "" else "Type a prompt to use your selected LoRA"
50
  weight_name = sdxl_loras[selected_state.index]["weights"]
51
  updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
52
  is_compatible = sdxl_loras[selected_state.index]["is_compatible"]