sohojoe commited on
Commit
7e9c7e5
1 Parent(s): ff1dc52

revert image resize

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -131,10 +131,10 @@ def main(
131
  image = Image.open(bytes)
132
  if image.mode != 'RGB':
133
  image = image.convert('RGB')
134
- width = 336
135
- aspect_ratio = float(image.height) / float(image.width)
136
- height = int(width * aspect_ratio)
137
- image = image.resize((width, height), Image.Resampling.LANCZOS)
138
  images.append((image, title))
139
  except Exception as e:
140
  print(e)
 
131
  image = Image.open(bytes)
132
  if image.mode != 'RGB':
133
  image = image.convert('RGB')
134
+ # width = 336
135
+ # aspect_ratio = float(image.height) / float(image.width)
136
+ # height = int(width * aspect_ratio)
137
+ # image = image.resize((width, height), Image.Resampling.LANCZOS)
138
  images.append((image, title))
139
  except Exception as e:
140
  print(e)