Spaces:
Running
Running
shaaravpawar
commited on
Commit
•
43afb20
1
Parent(s):
9a3a0d3
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,11 @@
|
|
1 |
from diffusers import DiffusionPipeline
|
2 |
-
import torch
|
3 |
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
pipeline = pipeline.to(device)
|
8 |
|
9 |
-
|
10 |
-
video = pipeline(prompt,num_interface_steps=50).videos
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
print(f"video generated and saved as {video_path}")
|
|
|
1 |
from diffusers import DiffusionPipeline
|
|
|
2 |
|
3 |
+
pipeline=DiffusionPipeline.from_pretrained("THUDM/CogVideoX-2b")
|
4 |
|
5 |
+
def generate_output()
|
|
|
6 |
|
7 |
+
output = pipeline("your input prompt here")return output
|
|
|
8 |
|
9 |
+
if __name__ == "__main__":
|
10 |
+
result = generate_output()
|
11 |
+
print(result)
|
|