arthrod commited on
Commit
9eb117a
Β·
verified Β·
1 Parent(s): f9cf6b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- asyncio.create_task(handle_connect_async())
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():