SamanthaStorm commited on
Commit
293a004
·
verified ·
1 Parent(s): 7dec571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -25,23 +25,23 @@ TOTAL_LABELS = 17
25
  TOTAL_LABELS = 17
26
  # Individual thresholds for each of the 17 labels
27
  THRESHOLDS = {
28
- "gaslighting": 0.18,
29
- "mockery": 0.20,
30
- "dismissiveness": 0.20,
31
- "control": 0.20,
32
- "guilt_tripping": 0.20,
33
- "apology_baiting": 0.20,
34
- "blame_shifting": 0.20,
35
  "projection": 0.20,
36
- "contradictory_statements": 0.20,
37
- "manipulation": 0.20,
38
- "deflection": 0.20,
39
  "insults": 0.20,
40
- "obscure_formal": 0.15,
41
  "recovery_phase": 0.15,
42
- "suicidal_threat": 0.10,
43
- "physical_threat": 0.10,
44
- "extreme_control": 0.10
45
  }
46
  def analyze_messages(input_text):
47
  input_text = input_text.strip()
 
25
  TOTAL_LABELS = 17
26
  # Individual thresholds for each of the 17 labels
27
  THRESHOLDS = {
28
+ "gaslighting": 0.15,
29
+ "mockery": 0.15,
30
+ "dismissiveness": 0.30,
31
+ "control": 0.13,
32
+ "guilt_tripping": 0.15,
33
+ "apology_baiting": 0.15,
34
+ "blame_shifting": 0.15,
35
  "projection": 0.20,
36
+ "contradictory_statements": 0.15,
37
+ "manipulation": 0.15,
38
+ "deflection": 0.15,
39
  "insults": 0.20,
40
+ "obscure_formal": 0.20,
41
  "recovery_phase": 0.15,
42
+ "suicidal_threat": 0.09,
43
+ "physical_threat": 0.50,
44
+ "extreme_control": 0.30
45
  }
46
  def analyze_messages(input_text):
47
  input_text = input_text.strip()