Lisandro commited on
Commit
9b880c3
·
1 Parent(s): 910daa5

Refactor app.py to fix bug in run_button click event handling

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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],