HARISH20205 commited on
Commit
20424fc
·
1 Parent(s): ceb2a80

some change

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def predict_emotion(data: Text):
40
 
41
  response = predict_custom_input(text=text)
42
 
43
- return JSONResponse(content={"userId": user_id, "Emotion": response})
44
  except Exception as e:
45
  logging.error(f"An error occurred: {e}")
46
  raise HTTPException(status_code=500, detail="An internal error occurred.")
 
40
 
41
  response = predict_custom_input(text=text)
42
 
43
+ return JSONResponse(content={"userId": user_id, "emotion": response})
44
  except Exception as e:
45
  logging.error(f"An error occurred: {e}")
46
  raise HTTPException(status_code=500, detail="An internal error occurred.")