Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -19,23 +19,24 @@ LABELS = [
|
|
19 |
|
20 |
# Custom thresholds for each label (make sure these match your original settings)
|
21 |
THRESHOLDS = {
|
22 |
-
"gaslighting": 0.
|
23 |
"mockery": 0.15,
|
24 |
-
"dismissiveness": 0.
|
25 |
-
"control": 0.
|
26 |
-
"guilt_tripping": 0.
|
27 |
-
"apology_baiting": 0.
|
28 |
-
"blame_shifting": 0.
|
29 |
-
"projection": 0.
|
30 |
-
"contradictory_statements": 0.
|
31 |
-
"manipulation": 0.
|
32 |
-
"deflection": 0.
|
33 |
-
"insults": 0.
|
34 |
-
"obscure_formal": 0.
|
35 |
-
"recovery_phase": 0.
|
36 |
-
"suicidal_threat": 0.
|
37 |
-
"physical_threat": 0.
|
38 |
-
"extreme_control": 0.
|
|
|
39 |
}
|
40 |
|
41 |
# Define label groups using slicing (first 14: abuse patterns, last 3: danger cues)
|
|
|
19 |
|
20 |
# Custom thresholds for each label (make sure these match your original settings)
|
21 |
THRESHOLDS = {
|
22 |
+
"gaslighting": 0.25,
|
23 |
"mockery": 0.15,
|
24 |
+
"dismissiveness": 0.30, # original value, not 0.30
|
25 |
+
"control": 0.43,
|
26 |
+
"guilt_tripping": 0.24,
|
27 |
+
"apology_baiting": 0.45,
|
28 |
+
"blame_shifting": 0.31,
|
29 |
+
"projection": 0.50,
|
30 |
+
"contradictory_statements": 0.25,
|
31 |
+
"manipulation": 0.25,
|
32 |
+
"deflection": 0.30,
|
33 |
+
"insults": 0.34,
|
34 |
+
"obscure_formal": 0.25,
|
35 |
+
"recovery_phase": 0.25,
|
36 |
+
"suicidal_threat": 0.45,
|
37 |
+
"physical_threat": 0.31,
|
38 |
+
"extreme_control": 0.36,
|
39 |
+
"non_abusive": 0.35
|
40 |
}
|
41 |
|
42 |
# Define label groups using slicing (first 14: abuse patterns, last 3: danger cues)
|