Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"]
|
| 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 |
|