yuntian-deng commited on
Commit
aec180f
·
1 Parent(s): 0688b7a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -158,7 +158,7 @@ async def websocket_endpoint(websocket: WebSocket):
158
  while True:
159
  try:
160
  # Receive user input with a timeout
161
- data = await asyncio.wait_for(websocket.receive_json(), timeout=90.0)
162
 
163
  if data.get("type") == "heartbeat":
164
  await websocket.send_json({"type": "heartbeat_response"})
 
158
  while True:
159
  try:
160
  # Receive user input with a timeout
161
+ data = await asyncio.wait_for(websocket.receive_json(), timeout=9000.0)
162
 
163
  if data.get("type") == "heartbeat":
164
  await websocket.send_json({"type": "heartbeat_response"})