Spaces:
Sleeping
Sleeping
Commit ·
781897a
1
Parent(s): da79888
Update functions.py
Browse files- functions.py +3 -3
functions.py
CHANGED
|
@@ -41,8 +41,8 @@ def prediction(X):
|
|
| 41 |
predictions = np.argmax(y_pred, axis=1)
|
| 42 |
for val in predictions:
|
| 43 |
if val == 0:
|
| 44 |
-
return 0, f"
|
| 45 |
elif val == 1:
|
| 46 |
-
return 1, f"
|
| 47 |
else:
|
| 48 |
-
return 2, f"
|
|
|
|
| 41 |
predictions = np.argmax(y_pred, axis=1)
|
| 42 |
for val in predictions:
|
| 43 |
if val == 0:
|
| 44 |
+
return 0, f"**Fear** is the emotion that you are currently feeling"
|
| 45 |
elif val == 1:
|
| 46 |
+
return 1, f"**Anger** is the emotion that you are currently feeling"
|
| 47 |
else:
|
| 48 |
+
return 2, f"**Joy** is the emotion that you are currently feeling
|