Spaces:
Paused
Paused
Update mental_health_api.py
Browse files- 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()}
|