achmaddhani commited on
Commit
781897a
·
1 Parent(s): da79888

Update functions.py

Browse files
Files changed (1) hide show
  1. 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"You are feeling Fear"
45
  elif val == 1:
46
- return 1, f"You are feeling Anger"
47
  else:
48
- return 2, f"You are feeling Joy"
 
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