1c1 commited on
Commit
a6ddc0e
·
verified ·
1 Parent(s): d540548

Create Python

Browse files
Files changed (1) hide show
  1. python +10 -0
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