Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ THRESHOLDS = {
|
|
40 |
}
|
41 |
|
42 |
# ——— 3) Emotional-tone tagging (no abuse_score / DARVO) —————————————————————————————
|
43 |
-
def
|
44 |
anger = emotion_profile.get("anger", 0)
|
45 |
disgust = emotion_profile.get("disgust", 0)
|
46 |
sadness = emotion_profile.get("sadness", 0)
|
|
|
40 |
}
|
41 |
|
42 |
# ——— 3) Emotional-tone tagging (no abuse_score / DARVO) —————————————————————————————
|
43 |
+
def get_tone_tag(emotion_profile, patterns):
|
44 |
anger = emotion_profile.get("anger", 0)
|
45 |
disgust = emotion_profile.get("disgust", 0)
|
46 |
sadness = emotion_profile.get("sadness", 0)
|