SamanthaStorm commited on
Commit
e6fb7a8
·
verified ·
1 Parent(s): 46b4f38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- return base
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