MuhammadTechxone commited on
Commit
0a4d809
·
verified ·
1 Parent(s): 3077e88

Update mental_health_api.py

Browse files
Files changed (1) hide show
  1. mental_health_api.py +1 -1
mental_health_api.py CHANGED
@@ -36,4 +36,4 @@ def predict(data: inputdata):
36
  # Remove extra whitespace
37
  #text = ' '.join(text.split())
38
  prediction = model.predict(df['clean_text'])
39
- return{"message":prediction}
 
36
  # Remove extra whitespace
37
  #text = ' '.join(text.split())
38
  prediction = model.predict(df['clean_text'])
39
+ return {"message": prediction.tolist()}