oracat commited on
Commit
70d9840
1 Parent(s): c8064dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def top_pct(preds, threshold=0.95):
196
  cum_score += item["score"]
197
  if cum_score >= threshold:
198
  break
199
- if item["score"] == 0:
200
  i -= 1
201
  break
202
 
 
196
  cum_score += item["score"]
197
  if cum_score >= threshold:
198
  break
199
+ if item["score"] < 0.01:
200
  i -= 1
201
  break
202