Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -277,8 +277,7 @@ def analyze_single_message(text, thresholds):
|
|
277 |
emotion_profile = get_emotion_profile(text)
|
278 |
|
279 |
# Derive sentiment from emotion intensity
|
280 |
-
|
281 |
-
sentiment = "undermining" if sentiment_score > 0.5 else "supportive"
|
282 |
|
283 |
weapon_flag = detect_weapon_language(text)
|
284 |
|
|
|
277 |
emotion_profile = get_emotion_profile(text)
|
278 |
|
279 |
# Derive sentiment from emotion intensity
|
280 |
+
sentiment = "undermining" if sentiment_score > 0.4 else "supportive"
|
|
|
281 |
|
282 |
weapon_flag = detect_weapon_language(text)
|
283 |
|