peterpeter8585 commited on
Commit
f775086
·
verified ·
1 Parent(s): ba6536d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -9,11 +9,10 @@ pipe = CogVideoXImageToVideoPipeline.from_pretrained(
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")
16
- pipe.to("cuda")
17
  generator = torch.Generator(device=device).manual_seed(42)
18
 
19
  video = pipe(
 
9
  torch_dtype=torch.bfloat16
10
  )
11
 
 
12
  def generate_video(prompt, image):
13
  # Ensure the generator is on the same device as the model
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
+ pipe.to("cpu")
16
  generator = torch.Generator(device=device).manual_seed(42)
17
 
18
  video = pipe(