Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -234,7 +234,8 @@ def get_emotional_tone_tag(emotions, sentiment, patterns, abuse_score):
|
|
234 |
):
|
235 |
return "aggressive"
|
236 |
if (
|
237 |
-
deflection > 0.1 or projection > 0.1) and
|
|
|
238 |
):
|
239 |
return "deflective"
|
240 |
|
|
|
234 |
):
|
235 |
return "aggressive"
|
236 |
if (
|
237 |
+
(deflection > 0.1 or projection > 0.1) and
|
238 |
+
(0.2 < anger <0.7 or 0.2< disgust < 0.7)
|
239 |
):
|
240 |
return "deflective"
|
241 |
|