serJD commited on
Commit
dc0c239
·
verified ·
1 Parent(s): 55611ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def process_data(image, text):
44
  base_width = 1024
45
  w_percent = (base_width / float(image.size[0]))
46
  h_size = int((float(image.size[1]) * float(w_percent)))
47
- image = image.resize((base_width, h_size), Image.ANTIALIAS)
48
 
49
  # Convert to base64
50
  buffered = BytesIO()
 
44
  base_width = 1024
45
  w_percent = (base_width / float(image.size[0]))
46
  h_size = int((float(image.size[1]) * float(w_percent)))
47
+ image = image.resize((base_width, h_size), Image.Resampling.LANCZOS)
48
 
49
  # Convert to base64
50
  buffered = BytesIO()