Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def remove_background(input_url):
|
|
54 |
if image.width > max_width:
|
55 |
aspect_ratio = image.height / image.width
|
56 |
new_height = int(max_width * aspect_ratio)
|
57 |
-
image = image.resize((max_width, new_height), Image.
|
58 |
|
59 |
# Save the resized image
|
60 |
image.save(image_path)
|
|
|
54 |
if image.width > max_width:
|
55 |
aspect_ratio = image.height / image.width
|
56 |
new_height = int(max_width * aspect_ratio)
|
57 |
+
image = image.resize((max_width, new_height), Image.LANCZOS)
|
58 |
|
59 |
# Save the resized image
|
60 |
image.save(image_path)
|