Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,10 +65,14 @@ with gr.Blocks() as demo:
|
|
65 |
outputs=[status_box, token_display, client_display, urn_display, name_display]
|
66 |
)
|
67 |
|
|
|
68 |
# Timer triggers polling and fetch
|
69 |
timer = gr.Timer(1.0)
|
70 |
timer.tick(fn=check_status, outputs=status_box)
|
|
|
|
|
71 |
timer.tick(fn=fetch_and_render, outputs=[urn_display, name_display])
|
72 |
|
|
|
73 |
# Launch
|
74 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
65 |
outputs=[status_box, token_display, client_display, urn_display, name_display]
|
66 |
)
|
67 |
|
68 |
+
# Timer triggers polling and fetch
|
69 |
# Timer triggers polling and fetch
|
70 |
timer = gr.Timer(1.0)
|
71 |
timer.tick(fn=check_status, outputs=status_box)
|
72 |
+
timer.tick(fn=show_token, outputs=token_display) # ← ADD BACK
|
73 |
+
timer.tick(fn=show_client_id, outputs=client_display) # ← ADD BACK
|
74 |
timer.tick(fn=fetch_and_render, outputs=[urn_display, name_display])
|
75 |
|
76 |
+
|
77 |
# Launch
|
78 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|