tarrasyed19472007 commited on
Commit
9e7ad63
·
verified ·
1 Parent(s): db6ea9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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}")