Upload app.py
Browse files
app.py
CHANGED
@@ -219,13 +219,17 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_width=True, css=css) as app:
|
|
219 |
|
220 |
gr.on(
|
221 |
triggers=[generate_button.click, prompt.submit],
|
|
|
|
|
|
|
|
|
222 |
fn=run_lora,
|
223 |
inputs=[prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height,
|
224 |
-
lora_scale, lora_repo_json],
|
225 |
outputs=[result, seed]
|
226 |
)
|
227 |
|
228 |
-
model_name.change(change_base_model, [model_name], None
|
229 |
|
230 |
gr.on(
|
231 |
triggers=[lora_search_civitai_submit.click, lora_search_civitai_query.submit],
|
|
|
219 |
|
220 |
gr.on(
|
221 |
triggers=[generate_button.click, prompt.submit],
|
222 |
+
fn=change_base_model,
|
223 |
+
inputs=[model_name],
|
224 |
+
outputs=None
|
225 |
+
).success(
|
226 |
fn=run_lora,
|
227 |
inputs=[prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height,
|
228 |
+
lora_scale, lora_repo_json],
|
229 |
outputs=[result, seed]
|
230 |
)
|
231 |
|
232 |
+
model_name.change(change_base_model, [model_name], None)
|
233 |
|
234 |
gr.on(
|
235 |
triggers=[lora_search_civitai_submit.click, lora_search_civitai_query.submit],
|