oddadmix commited on
Commit
d5f9cb3
·
verified ·
1 Parent(s): a80837e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,8 +42,8 @@ for model_key, config in MODEL_CONFIGS.items():
42
  max_tokens = 2000
43
 
44
  def resizeImage(image):
45
- if image.height > 1000:
46
- image = image.resize((int(image.width * 1000 / image.height), 1000), Image.Resampling.LANCZOS)
47
  return image
48
 
49
  @spaces.GPU
 
42
  max_tokens = 2000
43
 
44
  def resizeImage(image):
45
+ if image.height > 1500:
46
+ image = image.resize((int(image.width * 1500 / image.height), 1500), Image.Resampling.LANCZOS)
47
  return image
48
 
49
  @spaces.GPU