Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,6 +87,8 @@ def main():
|
|
87 |
"LABEL_1": "POSITIVE", # for positive emotions
|
88 |
"LABEL_2": "NEUTRAL", # for neutral emotions
|
89 |
}
|
|
|
|
|
90 |
mood = mood_mapping.get(detected_emotion, "NEUTRAL")
|
91 |
|
92 |
st.write(f"Detected Mood: {mood}")
|
|
|
87 |
"LABEL_1": "POSITIVE", # for positive emotions
|
88 |
"LABEL_2": "NEUTRAL", # for neutral emotions
|
89 |
}
|
90 |
+
|
91 |
+
# Map the detected emotion into a proper mood
|
92 |
mood = mood_mapping.get(detected_emotion, "NEUTRAL")
|
93 |
|
94 |
st.write(f"Detected Mood: {mood}")
|