Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
fb81033
1
Parent(s):
53e8420
Update app.py
Browse files
app.py
CHANGED
@@ -485,7 +485,7 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
|
|
485 |
with gr.Column(scale=8):
|
486 |
with gr.Row():
|
487 |
with gr.Column(scale=0, min_width=50):
|
488 |
-
lora_image_1 = gr.Image(label="LoRA 1 Image", interactive=False, min_width=50, width=50, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=50)
|
489 |
with gr.Column(scale=3, min_width=100):
|
490 |
selected_info_1 = gr.Markdown("Select a LoRA 1")
|
491 |
with gr.Column(scale=5, min_width=50):
|
@@ -495,7 +495,7 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
|
|
495 |
with gr.Column(scale=8):
|
496 |
with gr.Row():
|
497 |
with gr.Column(scale=0, min_width=50):
|
498 |
-
lora_image_2 = gr.Image(label="LoRA 2 Image", interactive=False, min_width=50, width=50, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=50)
|
499 |
with gr.Column(scale=3, min_width=100):
|
500 |
selected_info_2 = gr.Markdown("Select a LoRA 2")
|
501 |
with gr.Column(scale=5, min_width=50):
|
@@ -515,18 +515,19 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
|
|
515 |
label="Or pick from the LoRA Explorer gallery",
|
516 |
allow_preview=False,
|
517 |
columns=5,
|
518 |
-
elem_id="gallery"
|
|
|
519 |
)
|
520 |
with gr.Column():
|
521 |
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
522 |
-
result = gr.Image(label="Generated Image", interactive=False)
|
523 |
with gr.Accordion("History", open=False):
|
524 |
history_gallery = gr.Gallery(label="History", columns=6, object_fit="contain", interactive=False)
|
525 |
|
526 |
with gr.Row():
|
527 |
with gr.Accordion("Advanced Settings", open=False):
|
528 |
with gr.Row():
|
529 |
-
input_image = gr.Image(label="Input image", type="filepath")
|
530 |
image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=0.75)
|
531 |
with gr.Column():
|
532 |
with gr.Row():
|
@@ -575,7 +576,7 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
|
|
575 |
fn=run_lora,
|
576 |
inputs=[prompt, input_image, image_strength, cfg_scale, steps, selected_indices, lora_scale_1, lora_scale_2, randomize_seed, seed, width, height, loras_state],
|
577 |
outputs=[result, seed, progress_bar]
|
578 |
-
).then(
|
579 |
fn=lambda x, history: update_history(x, history),
|
580 |
inputs=[result, history_gallery],
|
581 |
outputs=history_gallery,
|
|
|
485 |
with gr.Column(scale=8):
|
486 |
with gr.Row():
|
487 |
with gr.Column(scale=0, min_width=50):
|
488 |
+
lora_image_1 = gr.Image(label="LoRA 1 Image", interactive=False, min_width=50, width=50, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=50, show_share_button=False)
|
489 |
with gr.Column(scale=3, min_width=100):
|
490 |
selected_info_1 = gr.Markdown("Select a LoRA 1")
|
491 |
with gr.Column(scale=5, min_width=50):
|
|
|
495 |
with gr.Column(scale=8):
|
496 |
with gr.Row():
|
497 |
with gr.Column(scale=0, min_width=50):
|
498 |
+
lora_image_2 = gr.Image(label="LoRA 2 Image", interactive=False, min_width=50, width=50, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=50, show_share_button=False)
|
499 |
with gr.Column(scale=3, min_width=100):
|
500 |
selected_info_2 = gr.Markdown("Select a LoRA 2")
|
501 |
with gr.Column(scale=5, min_width=50):
|
|
|
515 |
label="Or pick from the LoRA Explorer gallery",
|
516 |
allow_preview=False,
|
517 |
columns=5,
|
518 |
+
elem_id="gallery",
|
519 |
+
show_share_button=False
|
520 |
)
|
521 |
with gr.Column():
|
522 |
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
523 |
+
result = gr.Image(label="Generated Image", interactive=False, show_share_button=False)
|
524 |
with gr.Accordion("History", open=False):
|
525 |
history_gallery = gr.Gallery(label="History", columns=6, object_fit="contain", interactive=False)
|
526 |
|
527 |
with gr.Row():
|
528 |
with gr.Accordion("Advanced Settings", open=False):
|
529 |
with gr.Row():
|
530 |
+
input_image = gr.Image(label="Input image", type="filepath", show_share_button=False)
|
531 |
image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=0.75)
|
532 |
with gr.Column():
|
533 |
with gr.Row():
|
|
|
576 |
fn=run_lora,
|
577 |
inputs=[prompt, input_image, image_strength, cfg_scale, steps, selected_indices, lora_scale_1, lora_scale_2, randomize_seed, seed, width, height, loras_state],
|
578 |
outputs=[result, seed, progress_bar]
|
579 |
+
).then(
|
580 |
fn=lambda x, history: update_history(x, history),
|
581 |
inputs=[result, history_gallery],
|
582 |
outputs=history_gallery,
|