Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ darvo_model.eval()
|
|
85 |
|
86 |
# Constants and Labels
|
87 |
LABELS = [
|
88 |
-
"recovery", "control", "gaslighting", "guilt tripping", "dismissiveness",
|
89 |
"blame shifting", "nonabusive", "projection", "insults",
|
90 |
"contradictory statements", "obscure language"
|
91 |
]
|
@@ -93,17 +93,17 @@ LABELS = [
|
|
93 |
SENTIMENT_LABELS = ["undermining", "supportive"]
|
94 |
|
95 |
THRESHOLDS = {
|
96 |
-
"recovery": 0.
|
97 |
-
"control": 0.
|
98 |
-
"gaslighting": 0.
|
99 |
-
"guilt tripping": 0.
|
100 |
-
"dismissiveness": 0.
|
101 |
-
"blame shifting": 0.
|
102 |
-
"projection": 0.
|
103 |
-
"insults": 0.
|
104 |
-
"contradictory statements": 0.
|
105 |
-
"obscure language": 0.
|
106 |
-
"nonabusive":
|
107 |
}
|
108 |
|
109 |
|
|
|
85 |
|
86 |
# Constants and Labels
|
87 |
LABELS = [
|
88 |
+
"recovery phase", "control", "gaslighting", "guilt tripping", "dismissiveness",
|
89 |
"blame shifting", "nonabusive", "projection", "insults",
|
90 |
"contradictory statements", "obscure language"
|
91 |
]
|
|
|
93 |
SENTIMENT_LABELS = ["undermining", "supportive"]
|
94 |
|
95 |
THRESHOLDS = {
|
96 |
+
"recovery phase": 0.3,
|
97 |
+
"control": 0.15,
|
98 |
+
"gaslighting": 0.30,
|
99 |
+
"guilt tripping": 0.40,
|
100 |
+
"dismissiveness": 0.25,
|
101 |
+
"blame shifting": 0.25,
|
102 |
+
"projection": 0.50,
|
103 |
+
"insults": 0.30,
|
104 |
+
"contradictory statements": 0.35,
|
105 |
+
"obscure language": 0.30,
|
106 |
+
"nonabusive": 0.45
|
107 |
}
|
108 |
|
109 |
|