Spaces:
Sleeping
Sleeping
Commit
·
da90629
1
Parent(s):
6ac4977
Revert
Browse files
app.py
CHANGED
|
@@ -821,20 +821,12 @@ def create_interface():
|
|
| 821 |
)
|
| 822 |
|
| 823 |
# Auto-refresh conversation display every 1 second
|
| 824 |
-
gr.
|
| 825 |
-
|
| 826 |
-
fn=refresh_conversation,
|
| 827 |
-
outputs=[conversation_output],
|
| 828 |
-
interval_seconds=1
|
| 829 |
-
)
|
| 830 |
|
| 831 |
# Auto-refresh status every 2 seconds
|
| 832 |
-
gr.
|
| 833 |
-
|
| 834 |
-
fn=refresh_status,
|
| 835 |
-
outputs=[status_output],
|
| 836 |
-
interval_seconds=2
|
| 837 |
-
)
|
| 838 |
|
| 839 |
return interface
|
| 840 |
|
|
|
|
| 821 |
)
|
| 822 |
|
| 823 |
# Auto-refresh conversation display every 1 second
|
| 824 |
+
conversation_timer = gr.Timer(1)
|
| 825 |
+
conversation_timer.tick(refresh_conversation, outputs=[conversation_output])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 826 |
|
| 827 |
# Auto-refresh status every 2 seconds
|
| 828 |
+
status_timer = gr.Timer(2)
|
| 829 |
+
status_timer.tick(refresh_status, outputs=[status_output])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 830 |
|
| 831 |
return interface
|
| 832 |
|