Spaces:
Sleeping
Sleeping
Refactor app.py to fix bug in run_button click event handling
Browse files
app.py
CHANGED
@@ -52,8 +52,8 @@ with gr.Blocks() as demo:
|
|
52 |
|
53 |
run_button.click(
|
54 |
fn=clear_output,
|
55 |
-
inputs=[output_slider]
|
56 |
-
outputs=output_slider
|
57 |
).then(
|
58 |
upscale_image,
|
59 |
[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale, controlnet_strength, scheduler_name],
|
|
|
52 |
|
53 |
run_button.click(
|
54 |
fn=clear_output,
|
55 |
+
inputs=[output_slider],
|
56 |
+
outputs=[output_slider]
|
57 |
).then(
|
58 |
upscale_image,
|
59 |
[input_image, resolution, num_inference_steps, strength, hdr, guidance_scale, controlnet_strength, scheduler_name],
|