Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def classify_image(image):
|
|
| 45 |
if response.status_code == 200:
|
| 46 |
return response.json()
|
| 47 |
else:
|
| 48 |
-
st.error("Image classification failed.
|
| 49 |
return None
|
| 50 |
|
| 51 |
def find_closest_match(df, brand, model):
|
|
|
|
| 45 |
if response.status_code == 200:
|
| 46 |
return response.json()
|
| 47 |
else:
|
| 48 |
+
st.error(f"Image classification failed: {response.status_code} - {response.text}")
|
| 49 |
return None
|
| 50 |
|
| 51 |
def find_closest_match(df, brand, model):
|