Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def reset_status():
|
|
| 18 |
|
| 19 |
with gr.Blocks() as demo:
|
| 20 |
# we don’t actually show these widgets in the UI:
|
| 21 |
-
hidden_token = gr.Textbox(
|
| 22 |
hidden_btn = gr.Button(visible=False)
|
| 23 |
# wire up the hidden POST→function
|
| 24 |
hidden_btn.click(fn=receive_token, inputs=hidden_token, outputs=[])
|
|
@@ -29,4 +29,6 @@ with gr.Blocks() as demo:
|
|
| 29 |
refresh = gr.Button("Refresh").click(fn=check_status, outputs=status_box)
|
| 30 |
reset = gr.Button("Reset Status").click(fn=reset_status, outputs=status_box)
|
| 31 |
|
|
|
|
|
|
|
| 32 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 18 |
|
| 19 |
with gr.Blocks() as demo:
|
| 20 |
# we don’t actually show these widgets in the UI:
|
| 21 |
+
hidden_token = gr.Textbox()
|
| 22 |
hidden_btn = gr.Button(visible=False)
|
| 23 |
# wire up the hidden POST→function
|
| 24 |
hidden_btn.click(fn=receive_token, inputs=hidden_token, outputs=[])
|
|
|
|
| 29 |
refresh = gr.Button("Refresh").click(fn=check_status, outputs=status_box)
|
| 30 |
reset = gr.Button("Reset Status").click(fn=reset_status, outputs=status_box)
|
| 31 |
|
| 32 |
+
|
| 33 |
+
|
| 34 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|