GuglielmoTor commited on
Commit
7ab0240
·
verified ·
1 Parent(s): 734a45c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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(visible=False)
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)