sergeyfeldman commited on
Commit
7856594
·
1 Parent(s): 3593839

All harms now included

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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][: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