Saiyaswanth007 commited on
Commit
d4cc9d6
·
1 Parent(s): 2ab617a

Every depreciation

Browse files
Files changed (1) hide show
  1. app.py +3 -13
app.py CHANGED
@@ -820,19 +820,9 @@ def create_interface():
820
  outputs=[status_output]
821
  )
822
 
823
- # Auto-refresh conversation display every 1 second
824
- interface.load(
825
- fn=refresh_conversation,
826
- outputs=[conversation_output],
827
- every=1
828
- )
829
-
830
- # Auto-refresh status every 2 seconds
831
- interface.load(
832
- fn=refresh_status,
833
- outputs=[status_output],
834
- every=2
835
- )
836
 
837
  return interface
838
 
 
820
  outputs=[status_output]
821
  )
822
 
823
+ # Create timers for auto-refreshing components
824
+ conversation_timer = gr.Timer(1, refresh_conversation, outputs=[conversation_output])
825
+ status_timer = gr.Timer(2, refresh_status, outputs=[status_output])
 
 
 
 
 
 
 
 
 
 
826
 
827
  return interface
828