Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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.
|
| 29 |
-
"mockery": 0.
|
| 30 |
-
"dismissiveness": 0.
|
| 31 |
-
"control": 0.
|
| 32 |
-
"guilt_tripping": 0.
|
| 33 |
-
"apology_baiting": 0.
|
| 34 |
-
"blame_shifting": 0.
|
| 35 |
"projection": 0.20,
|
| 36 |
-
"contradictory_statements": 0.
|
| 37 |
-
"manipulation": 0.
|
| 38 |
-
"deflection": 0.
|
| 39 |
"insults": 0.20,
|
| 40 |
-
"obscure_formal": 0.
|
| 41 |
"recovery_phase": 0.15,
|
| 42 |
-
"suicidal_threat": 0.
|
| 43 |
-
"physical_threat": 0.
|
| 44 |
-
"extreme_control": 0.
|
| 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()
|