guardiancc commited on
Commit
cafadf1
1 Parent(s): 6010cc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ pipe = CogVideoXImageToVideoPipeline.from_pretrained(
9
  torch_dtype=torch.bfloat16
10
  )
11
 
12
- @spaces.GPU(duration=120)
13
  def generate_video(prompt, image):
14
  # Ensure the generator is on the same device as the model
15
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
@@ -20,7 +20,7 @@ def generate_video(prompt, image):
20
  prompt=prompt,
21
  image=image,
22
  num_videos_per_prompt=1,
23
- num_inference_steps=50,
24
  num_frames=49,
25
  guidance_scale=6,
26
  generator=generator,
 
9
  torch_dtype=torch.bfloat16
10
  )
11
 
12
+ @spaces.GPU(duration=250)
13
  def generate_video(prompt, image):
14
  # Ensure the generator is on the same device as the model
15
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
20
  prompt=prompt,
21
  image=image,
22
  num_videos_per_prompt=1,
23
+ num_inference_steps=15,
24
  num_frames=49,
25
  guidance_scale=6,
26
  generator=generator,