Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def sample(
|
|
92 |
|
93 |
return video_path
|
94 |
|
95 |
-
def resize_image(image, output_size=(
|
96 |
# Calculate aspect ratios
|
97 |
target_aspect = output_size[0] / output_size[1] # Aspect ratio of the desired size
|
98 |
image_aspect = image.width / image.height # Aspect ratio of the original image
|
|
|
92 |
|
93 |
return video_path
|
94 |
|
95 |
+
def resize_image(image, output_size=(1240, 720)):
|
96 |
# Calculate aspect ratios
|
97 |
target_aspect = output_size[0] / output_size[1] # Aspect ratio of the desired size
|
98 |
image_aspect = image.width / image.height # Aspect ratio of the original image
|