Spaces:
Paused
Paused
Commit
β’
218550a
1
Parent(s):
49f1f69
Update app.py
Browse files
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
|
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"]
|