Update app.py
Browse files
app.py
CHANGED
|
@@ -355,7 +355,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 355 |
inputs=[input_image, width_slider, height_slider, overlap_percentage, num_inference_steps,
|
| 356 |
resize_option, custom_resize_percentage, prompt_input, alignment_dropdown,
|
| 357 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
| 358 |
-
outputs=result,
|
| 359 |
).then(
|
| 360 |
fn=lambda x, history: update_history(x[1], history),
|
| 361 |
inputs=[result, history_gallery],
|
|
@@ -374,7 +374,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 374 |
fn=inpaint,
|
| 375 |
inputs=[input_image, width_slider, height_slider, overlap_percentage, num_inference_steps, resize_option, custom_resize_percentage, prompt_input, alignment_dropdown,
|
| 376 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
| 377 |
-
outputs=result,
|
| 378 |
).then(
|
| 379 |
fn=lambda x, history: update_history(x[1], history),
|
| 380 |
inputs=[result, history_gallery],
|
|
|
|
| 355 |
inputs=[input_image, width_slider, height_slider, overlap_percentage, num_inference_steps,
|
| 356 |
resize_option, custom_resize_percentage, prompt_input, alignment_dropdown,
|
| 357 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
| 358 |
+
outputs=[result, preview_image],
|
| 359 |
).then(
|
| 360 |
fn=lambda x, history: update_history(x[1], history),
|
| 361 |
inputs=[result, history_gallery],
|
|
|
|
| 374 |
fn=inpaint,
|
| 375 |
inputs=[input_image, width_slider, height_slider, overlap_percentage, num_inference_steps, resize_option, custom_resize_percentage, prompt_input, alignment_dropdown,
|
| 376 |
overlap_left, overlap_right, overlap_top, overlap_bottom],
|
| 377 |
+
outputs=[result, preview_image],
|
| 378 |
).then(
|
| 379 |
fn=lambda x, history: update_history(x[1], history),
|
| 380 |
inputs=[result, history_gallery],
|