ciover2024 commited on
Commit
3de9fa9
1 Parent(s): 0bf2ba9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def encode_image(orig_image):
80
  return img_str
81
 
82
  def resize_image(input_image, mask_image):
83
- orig_image = mask_image.resize(input_image.size, Image.BICUBIC)
84
  aspect_ratio = orig_image.height / orig_image.width
85
  old_width = orig_image.width
86
  new_width = int(orig_image.width*1.2)
 
80
  return img_str
81
 
82
  def resize_image(input_image, mask_image):
83
+ orig_image = mask_image.resize(input_image.size, Image.Resampling.LANCZOS)
84
  aspect_ratio = orig_image.height / orig_image.width
85
  old_width = orig_image.width
86
  new_width = int(orig_image.width*1.2)