Spaces:
Sleeping
Sleeping
Commit ·
20424fc
1
Parent(s): ceb2a80
some change
Browse files
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, "
|
| 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.")
|