Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def sample(
|
|
54 |
torch.cuda.empty_cache()
|
55 |
return video_path, seed
|
56 |
|
57 |
-
def resize_image(image, output_size=(1024,
|
58 |
# Calculate aspect ratios
|
59 |
target_aspect = output_size[0] / output_size[1] # Aspect ratio of the desired size
|
60 |
image_aspect = image.width / image.height # Aspect ratio of the original image
|
|
|
54 |
torch.cuda.empty_cache()
|
55 |
return video_path, seed
|
56 |
|
57 |
+
def resize_image(image, output_size=(1024, 576)):
|
58 |
# Calculate aspect ratios
|
59 |
target_aspect = output_size[0] / output_size[1] # Aspect ratio of the desired size
|
60 |
image_aspect = image.width / image.height # Aspect ratio of the original image
|