ochsncon commited on
Commit
f55f64a
·
verified ·
1 Parent(s): 7fdf277

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -162,9 +162,9 @@ def _run_advisor(
162
  predicted_class = vision_results.get("predicted_class", "Unknown")
163
  else:
164
  # No image, but make_model was entered manually
165
- predicted_class = "Unknown"
166
  vision_results = {
167
- "predicted_class": "Unknown",
168
  "confidence": 0.0,
169
  "method": "manual_input",
170
  "notes": ["Car brand/model entered manually without image."],
 
162
  predicted_class = vision_results.get("predicted_class", "Unknown")
163
  else:
164
  # No image, but make_model was entered manually
165
+ predicted_class = make_model.strip() if make_model and make_model.strip() else "Unknown"
166
  vision_results = {
167
+ "predicted_class": predicted_class,
168
  "confidence": 0.0,
169
  "method": "manual_input",
170
  "notes": ["Car brand/model entered manually without image."],