Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -73,18 +73,22 @@ LABELS = [
|
|
73 |
]
|
74 |
|
75 |
THRESHOLDS = {
|
76 |
-
"blame shifting": 0.30, "contradictory statements": 0.30, "control": 0.
|
77 |
-
"gaslighting": 0.
|
78 |
-
"projection": 0.
|
79 |
}
|
80 |
|
81 |
PATTERN_WEIGHTS = {
|
82 |
-
"gaslighting": 1.
|
83 |
-
"control": 1.
|
84 |
-
"dismissiveness": 0.
|
85 |
-
"blame shifting": 0.
|
|
|
|
|
|
|
|
|
86 |
"contradictory statements": 0.75,
|
87 |
-
"threat": 1.
|
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.",
|