Spaces:
Running
Running
Update app.py
Browse files
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 |
|