Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -212,7 +212,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
212 |
await stream_response()
|
213 |
except Exception as e:
|
214 |
print(f"Error during message handling: {e}")
|
215 |
-
await websocket.send_json({'response': "Something went wrong, Please try again
|
216 |
except WebSocketDisconnect:
|
217 |
print(f"Client disconnected: {websocket.client}")
|
218 |
if session_id:
|
|
|
212 |
await stream_response()
|
213 |
except Exception as e:
|
214 |
print(f"Error during message handling: {e}")
|
215 |
+
await websocket.send_json({'response': "Something went wrong, Please try again." + str(e)})
|
216 |
except WebSocketDisconnect:
|
217 |
print(f"Client disconnected: {websocket.client}")
|
218 |
if session_id:
|