Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -308,7 +308,7 @@ with gr.Blocks(css=css) as demo:
|
|
308 |
|
309 |
def use_output_as_input(output_image):
|
310 |
"""Sets the generated output as the new input image."""
|
311 |
-
return gr.update(value=
|
312 |
|
313 |
use_as_input_button.click(
|
314 |
fn=use_output_as_input,
|
@@ -320,28 +320,24 @@ with gr.Blocks(css=css) as demo:
|
|
320 |
fn=preload_presets,
|
321 |
inputs=[target_ratio, width_slider, height_slider],
|
322 |
outputs=[width_slider, height_slider, settings_panel],
|
323 |
-
queue=False
|
324 |
)
|
325 |
|
326 |
width_slider.change(
|
327 |
fn=select_the_right_preset,
|
328 |
inputs=[width_slider, height_slider],
|
329 |
outputs=[target_ratio],
|
330 |
-
queue=False
|
331 |
)
|
332 |
|
333 |
height_slider.change(
|
334 |
fn=select_the_right_preset,
|
335 |
inputs=[width_slider, height_slider],
|
336 |
outputs=[target_ratio],
|
337 |
-
queue=False
|
338 |
)
|
339 |
|
340 |
resize_option.change(
|
341 |
fn=toggle_custom_resize_slider,
|
342 |
inputs=[resize_option],
|
343 |
outputs=[custom_resize_size],
|
344 |
-
queue=False
|
345 |
)
|
346 |
|
347 |
run_button.click(
|
|
|
308 |
|
309 |
def use_output_as_input(output_image):
|
310 |
"""Sets the generated output as the new input image."""
|
311 |
+
return gr.update(value=False)
|
312 |
|
313 |
use_as_input_button.click(
|
314 |
fn=use_output_as_input,
|
|
|
320 |
fn=preload_presets,
|
321 |
inputs=[target_ratio, width_slider, height_slider],
|
322 |
outputs=[width_slider, height_slider, settings_panel],
|
|
|
323 |
)
|
324 |
|
325 |
width_slider.change(
|
326 |
fn=select_the_right_preset,
|
327 |
inputs=[width_slider, height_slider],
|
328 |
outputs=[target_ratio],
|
|
|
329 |
)
|
330 |
|
331 |
height_slider.change(
|
332 |
fn=select_the_right_preset,
|
333 |
inputs=[width_slider, height_slider],
|
334 |
outputs=[target_ratio],
|
|
|
335 |
)
|
336 |
|
337 |
resize_option.change(
|
338 |
fn=toggle_custom_resize_slider,
|
339 |
inputs=[resize_option],
|
340 |
outputs=[custom_resize_size],
|
|
|
341 |
)
|
342 |
|
343 |
run_button.click(
|