Manjushri commited on
Commit
459b383
·
verified ·
1 Parent(s): 716f62f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import gradio as gr
2
- #import gradio.helpers
3
  import torch
4
  import os
5
  from glob import glob
@@ -55,7 +54,7 @@ def sample(
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
 
1
  import gradio as gr
 
2
  import torch
3
  import os
4
  from glob import glob
 
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