Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Ensure you can't spam/double click
Browse files- 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(
|
69 |
-
|
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 |
|