status optimize
Browse files
app.py
CHANGED
|
@@ -586,7 +586,10 @@ class EnginePartDetector:
|
|
| 586 |
matched = best_score >= threshold
|
| 587 |
else:
|
| 588 |
best_class, best_score, matched = "UNCONFIGURED", 0.0, False
|
| 589 |
-
|
|
|
|
|
|
|
|
|
|
| 590 |
|
| 591 |
lines = [
|
| 592 |
f"{'β
' if matched else 'β'} **Top Prediction**: `{best_class}`",
|
|
|
|
| 586 |
matched = best_score >= threshold
|
| 587 |
else:
|
| 588 |
best_class, best_score, matched = "UNCONFIGURED", 0.0, False
|
| 589 |
+
if matched:
|
| 590 |
+
status = f"β
PASS: {best_class}" if "perfect" in best_class.lower() else f"β FAIL: {best_class}"
|
| 591 |
+
else:
|
| 592 |
+
status = "β FAIL: UNCERTAIN (below threshold)"
|
| 593 |
|
| 594 |
lines = [
|
| 595 |
f"{'β
' if matched else 'β'} **Top Prediction**: `{best_class}`",
|