Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -66,10 +66,11 @@ def update_selection(selected_state: gr.SelectData, flux_loras):
|
|
66 |
new_placeholder = config_placeholder
|
67 |
else:
|
68 |
new_placeholder = f"opt - describe the person/subject, e.g. 'a man with glasses and a beard'"
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
73 |
|
74 |
|
75 |
def get_huggingface_lora(link):
|
|
|
66 |
new_placeholder = config_placeholder
|
67 |
else:
|
68 |
new_placeholder = f"opt - describe the person/subject, e.g. 'a man with glasses and a beard'"
|
69 |
+
|
70 |
+
print("Selected Index: ", flux_loras[selected_state.index])
|
71 |
+
optimal_scale = flux_loras[selected_state.index].get("lora_scale", 1.5)
|
72 |
+
print("Optimal Scale: ", optimal_scale)
|
73 |
+
return updated_text, gr.update(placeholder=new_placeholder), selected_state.index, optimal_scale
|
74 |
|
75 |
|
76 |
def get_huggingface_lora(link):
|