SamanthaStorm commited on
Commit
97ccdef
·
verified ·
1 Parent(s): 8919db6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -224,7 +224,7 @@ def generate_risk_snippet(abuse_score, top_label, escalation_score, stage):
224
  Calculates abuse score based on passed patterns, their weights, and emotional context.
225
  """
226
  if not matched_scores:
227
- return 0
228
 
229
  # Weighted average of passed patterns
230
  weighted_total = sum(score * weight for _, score, weight in matched_scores)
 
224
  Calculates abuse score based on passed patterns, their weights, and emotional context.
225
  """
226
  if not matched_scores:
227
+ return 0
228
 
229
  # Weighted average of passed patterns
230
  weighted_total = sum(score * weight for _, score, weight in matched_scores)