Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ if (anger + disgust) > 0.5 \
|
|
79 |
and (lex_counts["anger"] > 0 or lex_counts["disgust"] > 0) \
|
80 |
and mpqa_counts["strongsubj"] > 0 \
|
81 |
and any(p in patterns for p in ["control","threat","insults","dismissiveness"]):
|
82 |
-
|
83 |
# ——— 1) Emotion Pipeline ————————————————————————————————————————————————
|
84 |
emotion_pipeline = hf_pipeline(
|
85 |
"text-classification",
|
|
|
79 |
and (lex_counts["anger"] > 0 or lex_counts["disgust"] > 0) \
|
80 |
and mpqa_counts["strongsubj"] > 0 \
|
81 |
and any(p in patterns for p in ["control","threat","insults","dismissiveness"]):
|
82 |
+
return "emotional threat"
|
83 |
# ——— 1) Emotion Pipeline ————————————————————————————————————————————————
|
84 |
emotion_pipeline = hf_pipeline(
|
85 |
"text-classification",
|