SamanthaStorm commited on
Commit
d14c860
·
verified ·
1 Parent(s): dd699d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -179,8 +179,8 @@ def get_emotional_tone_tag(emotion_profile, patterns, text_lower):
179
  # ——— 5) Single message analysis ———————————————————————————————————————————
180
  def analyze_message(text):
181
  text_lower = text.lower()
182
- emotion_profile = get_emotion_profile(text
183
- # 2a. get lexicon counts
184
  lex_counts = score_emolex(text_lower)
185
  max_lex = max(lex_counts.values()) or 1.0 # avoid div0
186
 
 
179
  # ——— 5) Single message analysis ———————————————————————————————————————————
180
  def analyze_message(text):
181
  text_lower = text.lower()
182
+ emotion_profile = get_emotion_profile(text)
183
+ # 2a. get lexicon counts
184
  lex_counts = score_emolex(text_lower)
185
  max_lex = max(lex_counts.values()) or 1.0 # avoid div0
186