SamanthaStorm commited on
Commit
5d1a24b
·
verified ·
1 Parent(s): b3b847a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def analyze_messages(input_text):
92
  f"Resources: {resources}"
93
  "The Danger Assessment is a validated tool used to help identify the level of risk for serious injury or homicide in cases of intimate partner violence.. "
94
  "It looks for specific abusive patterns that increase the likelihood of severe harm. "
95
- f"The messages just analyzed contain at least {triggered_flags_count} critical flags."
96
  )
97
 
98
  # Return both a text summary and a JSON-like dict of scores per label
 
92
  f"Resources: {resources}"
93
  "The Danger Assessment is a validated tool used to help identify the level of risk for serious injury or homicide in cases of intimate partner violence.. "
94
  "It looks for specific abusive patterns that increase the likelihood of severe harm. "
95
+ f"The messages just analyzed contain at least {DANGER_LABELS} critical flags."
96
  )
97
 
98
  # Return both a text summary and a JSON-like dict of scores per label