Ritesh-hf commited on
Commit
ed89c92
1 Parent(s): 995c6df

Update app.py

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