mitulagr2 commited on
Commit
82c3144
1 Parent(s): 107c7c6
Files changed (1) hide show
  1. app/main.py +2 -1
app/main.py CHANGED
@@ -50,7 +50,8 @@ async def websocket_endpoint(websocket: WebSocket, client_id: int):
50
  current_time = now.strftime("%H:%M")
51
  try:
52
  while True:
53
- data = await websocket.receive_text().strip()
 
54
  if len(data) > 0:
55
  generator = session_assistant.ask(data)
56
  for text in generator:
 
50
  current_time = now.strftime("%H:%M")
51
  try:
52
  while True:
53
+ data = await websocket.receive_text()
54
+ data = data.strip()
55
  if len(data) > 0:
56
  generator = session_assistant.ask(data)
57
  for text in generator: