eho69 commited on
Commit
cfd55eb
Β·
verified Β·
1 Parent(s): e677ee7

status optimize

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- status = f"βœ… CLASSIFIED AS: {best_class}" if matched else "❌ UNCERTAIN (below threshold)"
 
 
 
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}`",