Manjushri commited on
Commit
c737e29
1 Parent(s): 900f225

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, 768)):
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