Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,7 @@ Features:
|
|
| 18 |
"""
|
| 19 |
|
| 20 |
import asyncio
|
|
|
|
| 21 |
import os
|
| 22 |
import time
|
| 23 |
from collections import deque
|
|
@@ -404,7 +405,7 @@ def handle_connect():
|
|
| 404 |
app_state["last_status"] = "Initiating connection..."
|
| 405 |
|
| 406 |
# Start async connection
|
| 407 |
-
|
| 408 |
return "🔄 Initiating connection to GenAI Live API..."
|
| 409 |
|
| 410 |
async def handle_disconnect_async():
|
|
|
|
| 18 |
"""
|
| 19 |
|
| 20 |
import asyncio
|
| 21 |
+
import uvloop
|
| 22 |
import os
|
| 23 |
import time
|
| 24 |
from collections import deque
|
|
|
|
| 405 |
app_state["last_status"] = "Initiating connection..."
|
| 406 |
|
| 407 |
# Start async connection
|
| 408 |
+
uvloop.run(handle_connect_async())
|
| 409 |
return "🔄 Initiating connection to GenAI Live API..."
|
| 410 |
|
| 411 |
async def handle_disconnect_async():
|