SamanthaStorm commited on
Commit
1b563a8
·
verified ·
1 Parent(s): a37b7df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- return "emotional threat"
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",