Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -220,7 +220,7 @@ def generate_risk_snippet(abuse_score, top_label, escalation_score, stage):
|
|
| 220 |
base += f"\n💡 *Why this might be flagged:*\n{explanation}\n"
|
| 221 |
base += f"\nDetected Pattern: **{pattern_label} ({pattern_score})**\n"
|
| 222 |
base += "🧠 You can review the pattern in context. This tool highlights possible dynamics—not judgments."
|
| 223 |
-
|
| 224 |
def compute_abuse_score(matched_scores, sentiment):
|
| 225 |
if not matched_scores:
|
| 226 |
return 0
|
|
|
|
| 220 |
base += f"\n💡 *Why this might be flagged:*\n{explanation}\n"
|
| 221 |
base += f"\nDetected Pattern: **{pattern_label} ({pattern_score})**\n"
|
| 222 |
base += "🧠 You can review the pattern in context. This tool highlights possible dynamics—not judgments."
|
| 223 |
+
return base
|
| 224 |
def compute_abuse_score(matched_scores, sentiment):
|
| 225 |
if not matched_scores:
|
| 226 |
return 0
|