ciover2024 commited on
Commit
7480e87
·
verified ·
1 Parent(s): 72ff7a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,8 +72,8 @@ def load_upscaling_model():
72
 
73
  def resize_image(orig_image):
74
  aspect_ratio = orig_image.height / orig_image.width
75
- new_width = orig_image.width*1.1
76
- new_height = new_width * aspect_ratio
77
  resized_image = orig_image.resize((new_width, new_height), Image.Resampling.LANCZOS)
78
  return resized_image
79
 
 
72
 
73
  def resize_image(orig_image):
74
  aspect_ratio = orig_image.height / orig_image.width
75
+ new_width = int(orig_image.width*1.1)
76
+ new_height = int(new_width * aspect_ratio)
77
  resized_image = orig_image.resize((new_width, new_height), Image.Resampling.LANCZOS)
78
  return resized_image
79