Nguyen5 commited on
Commit
64108a5
·
1 Parent(s): 972c474
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -719,8 +719,6 @@ with gr.Blocks(title="Prüfungsrechts-Chatbot mit OpenAI Realtime API") as demo:
719
  </div>
720
  ''')
721
 
722
- # Queue Processing (cho streaming updates)
723
- stream_timer = gr.Timer()
724
 
725
  # =====================================================
726
  # EVENT HANDLERS
@@ -844,12 +842,7 @@ with gr.Blocks(title="Prüfungsrechts-Chatbot mit OpenAI Realtime API") as demo:
844
  )
845
 
846
  # Streaming updates
847
- stream_timer.tick(
848
- update_streaming_display,
849
- inputs=[chatbot],
850
- outputs=[chatbot],
851
- every=0.1
852
- )
853
 
854
  if __name__ == "__main__":
855
  demo.queue().launch(ssr_mode=False, show_error=True)
 
719
  </div>
720
  ''')
721
 
 
 
722
 
723
  # =====================================================
724
  # EVENT HANDLERS
 
842
  )
843
 
844
  # Streaming updates
845
+ # Streaming updates disabled (no Timer available in current Gradio)
 
 
 
 
 
846
 
847
  if __name__ == "__main__":
848
  demo.queue().launch(ssr_mode=False, show_error=True)