Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,18 +73,18 @@ LABELS = [
|
|
73 |
]
|
74 |
|
75 |
THRESHOLDS = {
|
76 |
-
"blame shifting": 0.
|
77 |
-
"gaslighting": 0.
|
78 |
-
"projection": 0.
|
79 |
}
|
80 |
|
81 |
PATTERN_WEIGHTS = {
|
82 |
"gaslighting": 1.3,
|
83 |
-
"control": 1.
|
84 |
"dismissiveness": 0.8,
|
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.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.",
|