Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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)
|