SamanthaStorm commited on
Commit
44dafc4
·
verified ·
1 Parent(s): 2c8c408

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
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.15,
23
  "mockery": 0.15,
24
- "dismissiveness": 0.25, # original value, not 0.30
25
- "control": 0.13,
26
- "guilt_tripping": 0.15,
27
- "apology_baiting": 0.15,
28
- "blame_shifting": 0.15,
29
- "projection": 0.20,
30
- "contradictory_statements": 0.15,
31
- "manipulation": 0.15,
32
- "deflection": 0.15,
33
- "insults": 0.20,
34
- "obscure_formal": 0.20,
35
- "recovery_phase": 0.15,
36
- "suicidal_threat": 0.08,
37
- "physical_threat": 0.045,
38
- "extreme_control": 0.30,
 
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)