muellerzr HF staff commited on
Commit
fc22c78
1 Parent(s): 0dea527

Ensure you can't spam/double click

Browse files
Files changed (1) hide show
  1. src/app.py +2 -2
src/app.py CHANGED
@@ -65,8 +65,8 @@ with gr.Blocks() as demo:
65
  outputs=[out_text, out, post_to_hub],
66
  )
67
 
68
- post_to_hub.click(report_results, inputs=[inp, library, access_token]).then(
69
- lambda: gr.Button.update(visible=False), outputs=post_to_hub
70
  )
71
 
72
 
 
65
  outputs=[out_text, out, post_to_hub],
66
  )
67
 
68
+ post_to_hub.click(lambda: gr.Button.update(visible=False), outputs=post_to_hub).then(
69
+ report_results, inputs=[inp, library, access_token]
70
  )
71
 
72