panda1835 commited on
Commit
a230b7d
·
1 Parent(s): 619b8a9

Update app.py

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