Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -125,8 +125,6 @@ def analyze_messages(input_text, risk_flags):
|
|
125 |
phrase_labels = [label for label, _ in matched_phrases]
|
126 |
pattern_labels_used = list(set(threshold_labels + phrase_labels))
|
127 |
|
128 |
-
)
|
129 |
-
|
130 |
abuse_level = calculate_abuse_level(scores, adjusted_thresholds, motif_hits=[label for label, _ in matched_phrases])
|
131 |
abuse_description = interpret_abuse_level(abuse_level)
|
132 |
# Escalate risk if user checks a critical context box
|
|
|
125 |
phrase_labels = [label for label, _ in matched_phrases]
|
126 |
pattern_labels_used = list(set(threshold_labels + phrase_labels))
|
127 |
|
|
|
|
|
128 |
abuse_level = calculate_abuse_level(scores, adjusted_thresholds, motif_hits=[label for label, _ in matched_phrases])
|
129 |
abuse_description = interpret_abuse_level(abuse_level)
|
130 |
# Escalate risk if user checks a critical context box
|