Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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 |
|