Spaces:
Running
Running
Flavio de Oliveira
commited on
Commit
•
a8e12af
1
Parent(s):
be7bcc5
Correct resize function
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def resize_image(image, base_height):
|
|
12 |
w_size = int(float(image.size[0]) * float(w_percent))
|
13 |
|
14 |
# Resize the image
|
15 |
-
return image.resize((w_size, base_height), Image.
|
16 |
|
17 |
def predict(input_image: Image.Image):
|
18 |
|
|
|
12 |
w_size = int(float(image.size[0]) * float(w_percent))
|
13 |
|
14 |
# Resize the image
|
15 |
+
return image.resize((w_size, base_height), Image.Resampling.LANCZOS)
|
16 |
|
17 |
def predict(input_image: Image.Image):
|
18 |
|