Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -302,9 +302,7 @@ with gr.Blocks(css=css) as demo:
|
|
302 |
)
|
303 |
|
304 |
with gr.Column():
|
305 |
-
result =
|
306 |
-
interactive=False,
|
307 |
-
label="Generated Image",
|
308 |
)
|
309 |
use_as_input_button = gr.Button("Use as Input Image", visible=False)
|
310 |
|
@@ -355,10 +353,6 @@ with gr.Blocks(css=css) as demo:
|
|
355 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
356 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
357 |
outputs=result,
|
358 |
-
).then(
|
359 |
-
fn=lambda: gr.update(visible=True),
|
360 |
-
inputs=None,
|
361 |
-
outputs=use_as_input_button,
|
362 |
)
|
363 |
|
364 |
prompt_input.submit(
|
@@ -370,10 +364,6 @@ with gr.Blocks(css=css) as demo:
|
|
370 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
371 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
372 |
outputs=result,
|
373 |
-
).then(
|
374 |
-
fn=lambda: gr.update(visible=True),
|
375 |
-
inputs=None,
|
376 |
-
outputs=use_as_input_button,
|
377 |
)
|
378 |
|
379 |
|
|
|
302 |
)
|
303 |
|
304 |
with gr.Column():
|
305 |
+
result = gr.Image(label="Generated Image",
|
|
|
|
|
306 |
)
|
307 |
use_as_input_button = gr.Button("Use as Input Image", visible=False)
|
308 |
|
|
|
353 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
354 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
355 |
outputs=result,
|
|
|
|
|
|
|
|
|
356 |
)
|
357 |
|
358 |
prompt_input.submit(
|
|
|
364 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
365 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
366 |
outputs=result,
|
|
|
|
|
|
|
|
|
367 |
)
|
368 |
|
369 |
|