razanalsulami commited on
Commit
e2ad6e1
β€’
1 Parent(s): b6919df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,13 +11,13 @@ def analyze_mood(user_input):
11
  # assign mood based on sentiment
12
  if result["label"] == "POSITIVE":
13
  mood = "Happy"
14
- suggestion = "Keep doing what you're doing! 😊"
15
  elif result["label"] == "NEGATIVE":
16
  mood = "Sad"
17
- suggestion = "Try to talk to someone, or take a break πŸ’‘"
18
  else:
19
  mood = "Neutral"
20
- suggestion = "You're doing okay! Stay calm 🌸"
21
 
22
  # Output mood and suggestion
23
  return "Your mood is " + mood, suggestion
 
11
  # assign mood based on sentiment
12
  if result["label"] == "POSITIVE":
13
  mood = "Happy"
14
+ suggestion = "Keep enjoying your day 😊"
15
  elif result["label"] == "NEGATIVE":
16
  mood = "Sad"
17
+ suggestion = "Try playing a game you like or practice some deep breathing exercises it might help!πŸƒ"
18
  else:
19
  mood = "Neutral"
20
+ suggestion = "You're doing well! Stay calm 🌸"
21
 
22
  # Output mood and suggestion
23
  return "Your mood is " + mood, suggestion