SamanthaStorm commited on
Commit
e9a937a
Β·
verified Β·
1 Parent(s): c4adf2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -73,18 +73,22 @@ LABELS = [
73
  ]
74
 
75
  THRESHOLDS = {
76
- "blame shifting": 0.30, "contradictory statements": 0.30, "control": 0.04, "dismissiveness": 0.09,
77
- "gaslighting": 0.11, "guilt tripping": 0.16, "insults": 0.14, "obscure language": 0.55,
78
- "projection": 0.11, "recovery phase": 0.24, "threat": 0.09
79
  }
80
 
81
  PATTERN_WEIGHTS = {
82
- "gaslighting": 1.3,
83
- "control": 1.4,
84
- "dismissiveness": 0.8,
85
- "blame shifting": 0.6,
 
 
 
 
86
  "contradictory statements": 0.75,
87
- "threat": 1.7 # πŸ”§ New: raise weight for threat
88
  }
89
  RISK_STAGE_LABELS = {
90
  1: "πŸŒ€ Risk Stage: Tension-Building\nThis message reflects rising emotional pressure or subtle control attempts.",
 
73
  ]
74
 
75
  THRESHOLDS = {
76
+ "blame shifting": 0.30, "contradictory statements": 0.30, "control": 0.08, "dismissiveness": 0.12,
77
+ "gaslighting": 0.09, "guilt tripping": 0.4, "insults": 0.10, "obscure language": 0.55,
78
+ "projection": 0.09, "recovery phase": 0.20, "threat": 0.15
79
  }
80
 
81
  PATTERN_WEIGHTS = {
82
+ "gaslighting": 1.5,
83
+ "control": 1.2,
84
+ "dismissiveness": 0.7,
85
+ "blame shifting": 0.8,
86
+ "guilt tripping": 1.2,
87
+ "insults": 1.4,
88
+ "projection": 1.2,
89
+ "recovery phase": 1.1,
90
  "contradictory statements": 0.75,
91
+ "threat": 1.6 # πŸ”§ New: raise weight for threat
92
  }
93
  RISK_STAGE_LABELS = {
94
  1: "πŸŒ€ Risk Stage: Tension-Building\nThis message reflects rising emotional pressure or subtle control attempts.",