Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 {
|
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
|