SamanthaStorm commited on
Commit
1038a10
Β·
verified Β·
1 Parent(s): be511bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -73,18 +73,18 @@ LABELS = [
73
  ]
74
 
75
  THRESHOLDS = {
76
- "blame shifting": 0.13, "contradictory statements": 0.36, "control": 0.06, "dismissiveness": 0.11,
77
- "gaslighting": 0.14, "guilt tripping": 0.20, "insults": 0.16, "obscure language": 0.60,
78
- "projection": 0.14, "recovery phase": 0.27, "threat": 0.14
79
  }
80
 
81
  PATTERN_WEIGHTS = {
82
  "gaslighting": 1.3,
83
- "control": 1.2,
84
  "dismissiveness": 0.8,
85
- "blame shifting": 0.8,
86
  "contradictory statements": 0.75,
87
- "threat": 1.5 # πŸ”§ 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.10, "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.",