SamanthaStorm commited on
Commit
ede8fe9
·
verified ·
1 Parent(s): 8f3574e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
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
- sadness = emotions.get("sadness", 0)
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 (