Spaces:
Runtime error
Runtime error
Commit ·
69fdfff
1
Parent(s): 268dd78
Update main.py
Browse files
main.py
CHANGED
|
@@ -177,8 +177,8 @@ def modelsummary(data):
|
|
| 177 |
def modelpredict(data):
|
| 178 |
data = txt_preprocess(data)
|
| 179 |
pred = model.predict(pd.Series([data]))
|
| 180 |
-
|
| 181 |
-
|
| 182 |
# return {"anger": .90, "happy": .02, "emotionlabel": "anger"}
|
| 183 |
|
| 184 |
#OTP code
|
|
|
|
| 177 |
def modelpredict(data):
|
| 178 |
data = txt_preprocess(data)
|
| 179 |
pred = model.predict(pd.Series([data]))
|
| 180 |
+
print(pred)
|
| 181 |
+
return pred
|
| 182 |
# return {"anger": .90, "happy": .02, "emotionlabel": "anger"}
|
| 183 |
|
| 184 |
#OTP code
|