Spaces:
Runtime error
Runtime error
Commit
·
7856594
1
Parent(s):
3593839
All harms now included
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def predict(text):
|
|
27 |
# keep tops for each one
|
28 |
issues = sorted(issues, key=lambda x: x[1])[::-1][:3]
|
29 |
feelings = sorted(feelings, key=lambda x: x[1])[::-1][:3]
|
30 |
-
harm = sorted(harm, key=lambda x: x[1])[::-1]
|
31 |
sentiment = sorted(sentiment, key=lambda x: x[1])[::-1][:1]
|
32 |
# top is the combo of these
|
33 |
top = issues + feelings + harm + sentiment
|
|
|
27 |
# keep tops for each one
|
28 |
issues = sorted(issues, key=lambda x: x[1])[::-1][:3]
|
29 |
feelings = sorted(feelings, key=lambda x: x[1])[::-1][:3]
|
30 |
+
harm = sorted(harm, key=lambda x: x[1])[::-1]
|
31 |
sentiment = sorted(sentiment, key=lambda x: x[1])[::-1][:1]
|
32 |
# top is the combo of these
|
33 |
top = issues + feelings + harm + sentiment
|