Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def predict(image):
|
|
25 |
#resizing the image to be at least 224x224 and then cropping from the center
|
26 |
size = (224, 224)
|
27 |
image = gr.inputs.Image()
|
28 |
-
image = ImageOps.fit(image, size,
|
29 |
|
30 |
#turn the image into a numpy array
|
31 |
image_array = np.asarray(image)
|
|
|
25 |
#resizing the image to be at least 224x224 and then cropping from the center
|
26 |
size = (224, 224)
|
27 |
image = gr.inputs.Image()
|
28 |
+
image = ImageOps.fit(image, size, Resampling.LANCZOS)
|
29 |
|
30 |
#turn the image into a numpy array
|
31 |
image_array = np.asarray(image)
|