Ritesh-hf commited on
Commit
735d2e7
1 Parent(s): 61352c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -197,7 +197,7 @@ async def websocket_endpoint(websocket: WebSocket):
197
  # Send each chunk to the client
198
  if "answer" in chunk:
199
  complete_response += chunk['answer']
200
- await websocket.send_json({'response': chunk['answer']})
201
 
202
  if context:
203
  citations = re.findall(r'\[(\d+)\]', complete_response)
 
197
  # Send each chunk to the client
198
  if "answer" in chunk:
199
  complete_response += chunk['answer']
200
+ websocket.send_json({'response': chunk['answer']})
201
 
202
  if context:
203
  citations = re.findall(r'\[(\d+)\]', complete_response)