SamanthaStorm commited on
Commit
4eeeb7e
·
verified ·
1 Parent(s): 1d02f33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -230,13 +230,13 @@ def get_emotional_tone_tag(emotions, sentiment, patterns, abuse_score):
230
  ):
231
  return "toxic resignation"
232
  if (
233
- aggression > 0.1 and anger > 0.5:
 
234
  return "aggressive"
235
- )
236
  if (
237
- deflection > 0.1 or projection > 0.1) and (0.2 < anger <0.7 or 0.2< disgust < 0.7):
 
238
  return "deflective"
239
- )
240
 
241
  return None
242
  def detect_contradiction(message):
 
230
  ):
231
  return "toxic resignation"
232
  if (
233
+ aggression > 0.1 and anger > 0.5
234
+ ):
235
  return "aggressive"
 
236
  if (
237
+ deflection > 0.1 or projection > 0.1) and (0.2 < anger <0.7 or 0.2< disgust < 0.7)
238
+ ):
239
  return "deflective"
 
240
 
241
  return None
242
  def detect_contradiction(message):