srijaydeshpande commited on
Commit
04819e9
·
verified ·
1 Parent(s): 2c03eb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -248,7 +248,7 @@ def segment_image(image):
248
  # Convert NumPy array to PIL Image
249
  image = Image.fromarray(img)
250
  # Resize the image using PIL
251
- resized_image = image.resize((new_w, new_h), Image.ANTIALIAS)
252
  img = np.array(resized_image)
253
 
254
  if (np.max(img) > 100):
 
248
  # Convert NumPy array to PIL Image
249
  image = Image.fromarray(img)
250
  # Resize the image using PIL
251
+ resized_image = image.resize((new_w, new_h))
252
  img = np.array(resized_image)
253
 
254
  if (np.max(img) > 100):