Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def classify(image):
|
|
| 22 |
#resize the image to a 224x224 with the same strategy as in TM2:
|
| 23 |
#resizing the image to be at least 224x224 and then cropping from the center
|
| 24 |
size = (224, 224)
|
| 25 |
-
image = ImageOps.fit(image, size, Image.
|
| 26 |
|
| 27 |
#turn the image into a numpy array
|
| 28 |
image_array = np.asarray(image)
|
|
|
|
| 22 |
#resize the image to a 224x224 with the same strategy as in TM2:
|
| 23 |
#resizing the image to be at least 224x224 and then cropping from the center
|
| 24 |
size = (224, 224)
|
| 25 |
+
image = ImageOps.fit(image, size, Image.LANCZOS)
|
| 26 |
|
| 27 |
#turn the image into a numpy array
|
| 28 |
image_array = np.asarray(image)
|