Spaces:
Sleeping
Sleeping
Create Python
Browse files
python
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from diffusers import DiffusionPipeline
|
| 2 |
+
import torch
|
| 3 |
+
|
| 4 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 5 |
+
"damo-vilab/text-to-video-ms-1.7b",
|
| 6 |
+
torch_dtype=torch.float16
|
| 7 |
+
).to("cuda")
|
| 8 |
+
|
| 9 |
+
prompt = "a futuristic city at night, neon lights"
|
| 10 |
+
video_frames = pipe(prompt).frames
|