Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -485,21 +485,6 @@ class GeminiHandler(AsyncStreamHandler):
|
|
| 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 |
|
|
|
|
| 485 |
|
| 486 |
def shutdown(self) -> None:
|
| 487 |
self.quit.set()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 488 |
with gr.Blocks() as demo:
|
| 489 |
gr.Markdown("# Gemini Chained Speech-to-Speech Demo")
|
| 490 |
|