Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def predict_image(input_img_pil):
|
|
| 34 |
"""
|
| 35 |
if model is None:
|
| 36 |
# Placeholder behavior if model loading failed
|
| 37 |
-
return {"Error": 1.0}
|
| 38 |
|
| 39 |
# 1. Preprocessing: Resize and convert to NumPy array
|
| 40 |
img_resized = input_img_pil.resize(IMAGE_SIZE)
|
|
|
|
| 34 |
"""
|
| 35 |
if model is None:
|
| 36 |
# Placeholder behavior if model loading failed
|
| 37 |
+
return {"Error ********": 1.0}
|
| 38 |
|
| 39 |
# 1. Preprocessing: Resize and convert to NumPy array
|
| 40 |
img_resized = input_img_pil.resize(IMAGE_SIZE)
|