Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
0257a93
1
Parent(s):
2c6e805
Update app.py
Browse files
app.py
CHANGED
@@ -393,7 +393,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
|
|
393 |
)
|
394 |
with gr.Group():
|
395 |
custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path", placeholder="multimodalart/vintage-ads-flux")
|
396 |
-
gr.Markdown("[Check the list of FLUX
|
397 |
custom_lora_info = gr.HTML(visible=False)
|
398 |
custom_lora_button = gr.Button("Remove custom LoRA", visible=False)
|
399 |
with gr.Column():
|
@@ -437,7 +437,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
|
|
437 |
inputs=[selected_indices],
|
438 |
outputs=[selected_info_1, selected_info_2, selected_indices, lora_scale_1, lora_scale_2]
|
439 |
)
|
440 |
-
|
|
|
441 |
add_custom_lora,
|
442 |
inputs=[custom_lora, selected_indices],
|
443 |
outputs=[custom_lora_info, custom_lora_button, gallery, selected_info_1, selected_info_2, selected_indices, lora_scale_1, lora_scale_2]
|
|
|
393 |
)
|
394 |
with gr.Group():
|
395 |
custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path", placeholder="multimodalart/vintage-ads-flux")
|
396 |
+
gr.Markdown("[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
|
397 |
custom_lora_info = gr.HTML(visible=False)
|
398 |
custom_lora_button = gr.Button("Remove custom LoRA", visible=False)
|
399 |
with gr.Column():
|
|
|
437 |
inputs=[selected_indices],
|
438 |
outputs=[selected_info_1, selected_info_2, selected_indices, lora_scale_1, lora_scale_2]
|
439 |
)
|
440 |
+
# Changed from submit to change to trigger on paste
|
441 |
+
custom_lora.change(
|
442 |
add_custom_lora,
|
443 |
inputs=[custom_lora, selected_indices],
|
444 |
outputs=[custom_lora_info, custom_lora_button, gallery, selected_info_1, selected_info_2, selected_indices, lora_scale_1, lora_scale_2]
|