Conner commited on
Commit
77bbe85
1 Parent(s): 1a9817c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, Image.Resampling.LANCZOS)
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)