Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def resize_image(input_image, resolution):
|
|
86 |
W = int(np.round(W / 64.0)) * 64
|
87 |
|
88 |
# Resize the image using PIL's resize method
|
89 |
-
img = input_image.resize((W, H), Image.
|
90 |
|
91 |
return img
|
92 |
|
|
|
86 |
W = int(np.round(W / 64.0)) * 64
|
87 |
|
88 |
# Resize the image using PIL's resize method
|
89 |
+
img = input_image.resize((W, H), Image.Resampling.LANCZOS)
|
90 |
|
91 |
return img
|
92 |
|