Spaces:
Running
Running
fixed model issue
Browse files
app.py
CHANGED
@@ -6,7 +6,8 @@ import tempfile
|
|
6 |
import os
|
7 |
|
8 |
pipe = AnimateDiffPipeline.from_pretrained(
|
9 |
-
"
|
|
|
10 |
)
|
11 |
pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
12 |
|
|
|
6 |
import os
|
7 |
|
8 |
pipe = AnimateDiffPipeline.from_pretrained(
|
9 |
+
"ByteDance/AnimateDiff-Lightning",
|
10 |
+
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32
|
11 |
)
|
12 |
pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
|