ElBeh commited on
Commit
1383ffa
·
verified ·
1 Parent(s): 3d13539

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ if file_name is not None:
80
  if image.size != (200, 200) or image.mode != 'RGB':
81
  if crop:
82
  image = random_crop(image)
83
- image = image.resize((200, 200))
84
 
85
  #if image.format != "JPEG" and compress :
86
  if compress :
 
80
  if image.size != (200, 200) or image.mode != 'RGB':
81
  if crop:
82
  image = random_crop(image)
83
+ image = image.resize((200, 200), Image.LANCZOS)
84
 
85
  #if image.format != "JPEG" and compress :
86
  if compress :