Conner commited on
Commit
ce411ec
·
1 Parent(s): 320edad

Update app.py

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