Spaces:
Runtime error
Runtime error
minor: round AI and Real Scores to three decimal places in ensemble prediction results
Browse files- app_test.py +2 -2
app_test.py
CHANGED
|
@@ -297,8 +297,8 @@ def predict_with_ensemble(img, confidence_threshold, augment_methods, rotate_deg
|
|
| 297 |
table_rows = [[
|
| 298 |
r.get("Model", ""),
|
| 299 |
r.get("Contributor", ""),
|
| 300 |
-
r.get("AI Score", 0.0) if r.get("AI Score") is not None else 0.0,
|
| 301 |
-
r.get("Real Score", 0.0) if r.get("Real Score") is not None else 0.0,
|
| 302 |
r.get("Label", "Error")
|
| 303 |
] for r in results]
|
| 304 |
|
|
|
|
| 297 |
table_rows = [[
|
| 298 |
r.get("Model", ""),
|
| 299 |
r.get("Contributor", ""),
|
| 300 |
+
round(r.get("AI Score", 0.0), 3) if r.get("AI Score") is not None else 0.0,
|
| 301 |
+
round(r.get("Real Score", 0.0), 3) if r.get("Real Score") is not None else 0.0,
|
| 302 |
r.get("Label", "Error")
|
| 303 |
] for r in results]
|
| 304 |
|