julien-c HF staff commited on
Commit
c461ad9
1 Parent(s): cccdd07

suggestion from Pedro

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,6 +47,6 @@ with gr.Blocks(css=CUSTOM_CSS) as demo:
47
 
48
  check = gr.Checkbox(label="Run on GPU")
49
 
50
- demo.load(fn=run, inputs=[check], outputs=output, every=1)
51
 
52
  demo.queue().launch(show_api=False)
 
47
 
48
  check = gr.Checkbox(label="Run on GPU")
49
 
50
+ check.change(run, inputs=[check], outputs=output, every=1)
51
 
52
  demo.queue().launch(show_api=False)