multimodalart HF staff commited on
Commit
af7f787
1 Parent(s): 9e6bb2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ model = load_model()
65
 
66
  # Text-to-video generation function
67
  @spaces.GPU(duration=120)
68
- def generate_video(image, prompt, duration, guidance_scale, video_guidance_scale):
69
  multiplier = 0.8 if is_canonical else 2.4
70
  temp = int(duration * 0.8) # Convert seconds to temp value (assuming 24 FPS)
71
  torch_dtype = torch.bfloat16 if MODEL_DTYPE == "bf16" else torch.float32
 
65
 
66
  # Text-to-video generation function
67
  @spaces.GPU(duration=120)
68
+ def generate_video(image, prompt, duration, guidance_scale, video_guidance_scale, progress=gr.Progress(track_tqdm=True)):
69
  multiplier = 0.8 if is_canonical else 2.4
70
  temp = int(duration * 0.8) # Convert seconds to temp value (assuming 24 FPS)
71
  torch_dtype = torch.bfloat16 if MODEL_DTYPE == "bf16" else torch.float32