Manjushri commited on
Commit
2badfaa
·
verified ·
1 Parent(s): 8c26882

Update app.py

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