Spaces:
Running
on
Zero
Running
on
Zero
Update app_merged.py
Browse files- app_merged.py +7 -5
app_merged.py
CHANGED
@@ -1594,9 +1594,11 @@ with gr.Blocks() as app:
|
|
1594 |
with gr.Column():
|
1595 |
|
1596 |
with gr.Row():
|
1597 |
-
with gr.Column(
|
1598 |
-
result_gallery = gr.
|
1599 |
-
|
|
|
|
|
1600 |
with gr.Group():
|
1601 |
gr.Markdown("Outpaint")
|
1602 |
with gr.Row():
|
@@ -1772,7 +1774,7 @@ with gr.Blocks() as app:
|
|
1772 |
outputs=fill_result,
|
1773 |
).then(
|
1774 |
fn=inpaint,
|
1775 |
-
inputs=[
|
1776 |
resize_option, custom_resize_percentage, prompt_fill, alignment_dropdown,
|
1777 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
1778 |
outputs=[fill_result])
|
@@ -1788,7 +1790,7 @@ with gr.Blocks() as app:
|
|
1788 |
outputs=fill_result,
|
1789 |
).then(
|
1790 |
fn=inpaint,
|
1791 |
-
inputs=[
|
1792 |
resize_option, custom_resize_percentage, prompt_fill, alignment_dropdown,
|
1793 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
1794 |
outputs=[fill_result])
|
|
|
1594 |
with gr.Column():
|
1595 |
|
1596 |
with gr.Row():
|
1597 |
+
with gr.Column(4):
|
1598 |
+
result_gallery = gr.Gallery(height=832, label='Outputs', object_fit='contain', selected_index=0)
|
1599 |
+
if result_gallery:
|
1600 |
+
result_gallery.select(use_orientation, inputs=None, outputs=dummy_image_for_outputs)
|
1601 |
+
with gr.Column(1):
|
1602 |
with gr.Group():
|
1603 |
gr.Markdown("Outpaint")
|
1604 |
with gr.Row():
|
|
|
1774 |
outputs=fill_result,
|
1775 |
).then(
|
1776 |
fn=inpaint,
|
1777 |
+
inputs=[dummy_image_for_outputs, width_slider, height_slider, overlap_percentage, num_inference_steps,
|
1778 |
resize_option, custom_resize_percentage, prompt_fill, alignment_dropdown,
|
1779 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
1780 |
outputs=[fill_result])
|
|
|
1790 |
outputs=fill_result,
|
1791 |
).then(
|
1792 |
fn=inpaint,
|
1793 |
+
inputs=[dummy_image_for_outputs, width_slider, height_slider, overlap_percentage, num_inference_steps,
|
1794 |
resize_option, custom_resize_percentage, prompt_fill, alignment_dropdown,
|
1795 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
1796 |
outputs=[fill_result])
|