Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -497,7 +497,7 @@ def analyze_single_message(text, thresholds):
|
|
497 |
]
|
498 |
|
499 |
return abuse_score, threshold_labels, top_patterns, {"label": sentiment}, stage, darvo_score, tone_tag
|
500 |
-
|
501 |
|
502 |
# Tag must happen after abuse score is finalized
|
503 |
tone_tag = get_emotional_tone_tag(emotion_profile, sentiment, threshold_labels, abuse_score)
|
|
|
497 |
]
|
498 |
|
499 |
return abuse_score, threshold_labels, top_patterns, {"label": sentiment}, stage, darvo_score, tone_tag
|
500 |
+
|
501 |
|
502 |
# Tag must happen after abuse score is finalized
|
503 |
tone_tag = get_emotional_tone_tag(emotion_profile, sentiment, threshold_labels, abuse_score)
|