Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def update_selection(selected_state: gr.SelectData, flux_loras):
|
|
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("
|
72 |
print("Optimal Scale: ", optimal_scale)
|
73 |
return updated_text, gr.update(placeholder=new_placeholder), selected_state.index, optimal_scale
|
74 |
|
|
|
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_config", 1.5)
|
72 |
print("Optimal Scale: ", optimal_scale)
|
73 |
return updated_text, gr.update(placeholder=new_placeholder), selected_state.index, optimal_scale
|
74 |
|