mitulagr2 commited on
Commit
107c7c6
1 Parent(s): d04ea2c
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -53,7 +53,7 @@ async def websocket_endpoint(websocket: WebSocket, client_id: int):
53
  data = await websocket.receive_text().strip()
54
  if len(data) > 0:
55
  generator = session_assistant.ask(data)
56
- for text in generator
57
  message = {"time":current_time,"clientId":client_id,"message":text}
58
  # await manager.broadcast(json.dumps(message))
59
  await manager.send_personal_message(json.dumps(message), websocket)
 
53
  data = await websocket.receive_text().strip()
54
  if len(data) > 0:
55
  generator = session_assistant.ask(data)
56
+ for text in generator:
57
  message = {"time":current_time,"clientId":client_id,"message":text}
58
  # await manager.broadcast(json.dumps(message))
59
  await manager.send_personal_message(json.dumps(message), websocket)