Update app.py
Browse files
app.py
CHANGED
@@ -562,8 +562,8 @@ with gr.Blocks(css=css, delete_cache=(240, 240)) as app:
|
|
562 |
interactive=False
|
563 |
)
|
564 |
with gr.Column():
|
565 |
-
|
566 |
-
|
567 |
|
568 |
gallery.select(
|
569 |
update_selection,
|
@@ -598,12 +598,8 @@ with gr.Blocks(css=css, delete_cache=(240, 240)) as app:
|
|
598 |
triggers=[generate_button.click, prompt.submit],
|
599 |
fn=run_lora,
|
600 |
inputs=[prompt, cfg_scale, steps, selected_indices, lora_scale_1, lora_scale_2, randomize_seed, seed, width, height, loras_state],
|
601 |
-
outputs=[
|
602 |
-
)
|
603 |
-
# fn=lambda x, history: update_history(x, history),
|
604 |
-
# inputs=[result, history_gallery],
|
605 |
-
# outputs=history_gallery,
|
606 |
-
#)
|
607 |
|
608 |
app.queue()
|
609 |
app.launch()
|
|
|
562 |
interactive=False
|
563 |
)
|
564 |
with gr.Column():
|
565 |
+
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
566 |
+
results = [gr.Image(label=f"Image {i+1}", interactive=False, show_share_button=False) for i in range(4)]
|
567 |
|
568 |
gallery.select(
|
569 |
update_selection,
|
|
|
598 |
triggers=[generate_button.click, prompt.submit],
|
599 |
fn=run_lora,
|
600 |
inputs=[prompt, cfg_scale, steps, selected_indices, lora_scale_1, lora_scale_2, randomize_seed, seed, width, height, loras_state],
|
601 |
+
outputs=[*results, seed, progress_bar]
|
602 |
+
)
|
|
|
|
|
|
|
|
|
603 |
|
604 |
app.queue()
|
605 |
app.launch()
|