afouda commited on
Commit
c9ed1fc
·
verified ·
1 Parent(s): fd69e98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -485,7 +485,21 @@ class GeminiHandler(AsyncStreamHandler):
485
 
486
  def shutdown(self) -> None:
487
  self.quit.set()
488
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
489
  with gr.Blocks() as demo:
490
  gr.Markdown("# Gemini Chained Speech-to-Speech Demo")
491
 
 
485
 
486
  def shutdown(self) -> None:
487
  self.quit.set()
488
+ async def safe_get_ice_config_async():
489
+ return {
490
+ "iceServers": [
491
+ {"urls": ["stun:stun.l.google.com:19302"]},
492
+ {
493
+ "urls": [
494
+ "turn:your-turn.example.com:443?transport=tcp",
495
+ "turns:your-turn.example.com:443?transport=tcp",
496
+ ],
497
+ "username": os.environ["TURN_USERNAME"],
498
+ "credential": os.environ["TURN_PASSWORD"],
499
+ },
500
+ ]
501
+ }
502
+
503
  with gr.Blocks() as demo:
504
  gr.Markdown("# Gemini Chained Speech-to-Speech Demo")
505