sarahai commited on
Commit
ee51016
·
verified ·
1 Parent(s): 5353f1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ IMG_SIZE = (300, 300)
11
 
12
  # Function to preprocess the image
13
  def preprocess_image(image):
14
- image = image.resize(IMG_SIZE, Image.ANTIALIAS)
15
  inp_numpy = np.array(image)[None]
16
  inp = tf.constant(inp_numpy, dtype='float32')
17
  return inp
 
11
 
12
  # Function to preprocess the image
13
  def preprocess_image(image):
14
+ image = image.resize(IMG_SIZE, Image.LANCZOS) # Updated to use Image.LANCZOS
15
  inp_numpy = np.array(image)[None]
16
  inp = tf.constant(inp_numpy, dtype='float32')
17
  return inp