Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def main():
|
|
26 |
input_image = Image.open(uploaded_file).convert("RGB")
|
27 |
|
28 |
width, height = input_image.size
|
29 |
-
new_height =
|
30 |
aspect_ratio = width / height
|
31 |
new_width = int(new_height * aspect_ratio)
|
32 |
input_image = input_image.resize((new_width, new_height), Image.LANCZOS)
|
|
|
26 |
input_image = Image.open(uploaded_file).convert("RGB")
|
27 |
|
28 |
width, height = input_image.size
|
29 |
+
new_height = 300
|
30 |
aspect_ratio = width / height
|
31 |
new_width = int(new_height * aspect_ratio)
|
32 |
input_image = input_image.resize((new_width, new_height), Image.LANCZOS)
|