nightfury commited on
Commit
18cda56
1 Parent(s): a268e4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,7 +18,8 @@ import spaces
18
  pipe = StableVideoDiffusionPipeline.from_pretrained(
19
  "vdo/stable-video-diffusion-img2vid-xt-1-1", torch_dtype=torch.float16, variant="fp16"
20
  )
21
- pipe.to("cuda")
 
22
 
23
  max_64_bit_int = 2**63 - 1
24
 
 
18
  pipe = StableVideoDiffusionPipeline.from_pretrained(
19
  "vdo/stable-video-diffusion-img2vid-xt-1-1", torch_dtype=torch.float16, variant="fp16"
20
  )
21
+ pipe.to("cuda:0" if torch.cuda.is_available() else "cpu")
22
+ #device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
23
 
24
  max_64_bit_int = 2**63 - 1
25