Conner commited on
Commit
e7d7b9d
·
1 Parent(s): 32830a2

Update app.py

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