Update app.py
Browse files
app.py
CHANGED
@@ -197,8 +197,10 @@ def handle_message(data):
|
|
197 |
{"input": question, 'language': language},
|
198 |
config={"configurable": {"session_id": session_id}},
|
199 |
):
|
|
|
200 |
emit('response', chunk, room=request.sid)
|
201 |
except Exception as e:
|
|
|
202 |
print(f"Error during message handling: {e}")
|
203 |
emit('response', {"error": "An error occurred while processing your request."}, room=request.sid)
|
204 |
|
|
|
197 |
{"input": question, 'language': language},
|
198 |
config={"configurable": {"session_id": session_id}},
|
199 |
):
|
200 |
+
print(chunk)
|
201 |
emit('response', chunk, room=request.sid)
|
202 |
except Exception as e:
|
203 |
+
print(e)
|
204 |
print(f"Error during message handling: {e}")
|
205 |
emit('response', {"error": "An error occurred while processing your request."}, room=request.sid)
|
206 |
|