Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -132,9 +132,9 @@ def analyze_composite(msg1, msg2, msg3, flags):
|
|
132 |
composite_score = round(min(composite_score, 100), 2) # re-cap just in case
|
133 |
|
134 |
result = f"These messages show patterns of {', '.join(label for label, _ in top_labels)} and are estimated to be {composite_score}% likely abusive."
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
return result
|
139 |
|
140 |
textbox_inputs = [
|
|
|
132 |
composite_score = round(min(composite_score, 100), 2) # re-cap just in case
|
133 |
|
134 |
result = f"These messages show patterns of {', '.join(label for label, _ in top_labels)} and are estimated to be {composite_score}% likely abusive."
|
135 |
+
for expl in top_explanations:
|
136 |
+
if expl:
|
137 |
+
result += f"\n• {expl}"
|
138 |
return result
|
139 |
|
140 |
textbox_inputs = [
|