Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def classify_image(inp):
|
|
| 61 |
|
| 62 |
image = inp
|
| 63 |
# Resize image to 224x224
|
| 64 |
-
image = image.resize((224, 224
|
| 65 |
|
| 66 |
# Convert to numpy array and ensure correct shape
|
| 67 |
image_array = np.array(image)
|
|
|
|
| 61 |
|
| 62 |
image = inp
|
| 63 |
# Resize image to 224x224
|
| 64 |
+
image = image.resize((224, 224), Image.Resampling.LANCZOS)
|
| 65 |
|
| 66 |
# Convert to numpy array and ensure correct shape
|
| 67 |
image_array = np.array(image)
|