Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
15 |
elif result["label"] == "NEGATIVE":
|
16 |
mood = "Sad"
|
17 |
-
suggestion = "Try
|
18 |
else:
|
19 |
mood = "Neutral"
|
20 |
-
suggestion = "You're doing
|
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
|