Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -120,10 +120,10 @@ def analyze_composite(msg1, msg2, msg3, flags):
|
|
120 |
"They monitor/follow me": 4,
|
121 |
"I feel unsafe when alone with them": 6
|
122 |
}
|
123 |
-
flag_boost = sum(flag_weights.get(f, 3) for f in flags) / len(active_messages)
|
124 |
-
composite_score = min(base_score + flag_boost, 100)
|
125 |
-
composite_score = round(composite_score, 2)
|
126 |
-
composite_score = round(composite_score)
|
127 |
|
128 |
result = f"These messages show patterns of {', '.join(label for label, _ in top_labels)} and are estimated to be {composite_score}% likely abusive."
|
129 |
for expl in top_explanations:
|
|
|
120 |
"They monitor/follow me": 4,
|
121 |
"I feel unsafe when alone with them": 6
|
122 |
}
|
123 |
+
flag_boost = sum(flag_weights.get(f, 3) for f in flags) / len(active_messages)
|
124 |
+
composite_score = min(base_score + flag_boost, 100)
|
125 |
+
composite_score = round(composite_score, 2)
|
126 |
+
composite_score = round(composite_score)
|
127 |
|
128 |
result = f"These messages show patterns of {', '.join(label for label, _ in top_labels)} and are estimated to be {composite_score}% likely abusive."
|
129 |
for expl in top_explanations:
|