Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|