Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -130,14 +130,8 @@ ESCALATION_QUESTIONS = [
|
|
130 |
("Violence has increased in frequency or severity", 3),
|
131 |
("Partner monitors your calls/GPS/social media", 2)
|
132 |
]
|
133 |
-
tone_tag = get_emotional_tone_tag(emotion_profile, sentiment, threshold_labels, abuse_score)
|
134 |
-
|
135 |
-
joy = emotions.get("joy", 0)
|
136 |
-
neutral = emotions.get("neutral", 0)
|
137 |
-
disgust = emotions.get("disgust", 0)
|
138 |
-
anger = emotions.get("anger", 0)
|
139 |
-
fear = emotions.get("fear", 0)
|
140 |
-
disgust = emotions.get("disgust", 0)
|
141 |
|
142 |
# 1. Performative Regret
|
143 |
if (
|
|
|
130 |
("Violence has increased in frequency or severity", 3),
|
131 |
("Partner monitors your calls/GPS/social media", 2)
|
132 |
]
|
133 |
+
tone_tag = get_emotional_tone_tag(emotion_profile, sentiment, threshold_labels, abuse_score, text)
|
134 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
|
136 |
# 1. Performative Regret
|
137 |
if (
|