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