Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,6 @@ def predict(twitter):
|
|
28 |
"Anger": pred[3]["score"],
|
29 |
"Fear": pred[4]["score"],
|
30 |
"Surprise": pred[5]["score"]}
|
31 |
-
# "This tweet is %s with probability=%.2f" % (emotions[pred['label']], 100 * pred['score']) + "%"
|
32 |
return res
|
33 |
|
34 |
|
|
|
28 |
"Anger": pred[3]["score"],
|
29 |
"Fear": pred[4]["score"],
|
30 |
"Surprise": pred[5]["score"]}
|
|
|
31 |
return res
|
32 |
|
33 |
|