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