Spaces:
Runtime error
Runtime error
Jagad1234unique
commited on
Commit
•
039d558
1
Parent(s):
c9e6a70
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import random
|
4 |
-
|
5 |
-
# import spaces #[uncomment to use ZeroGPU]
|
6 |
from diffusers import DiffusionPipeline
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
model_repo_id = "stabilityai/sdxl-turbo" # Replace to the model you would like to use
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import random
|
|
|
|
|
4 |
from diffusers import DiffusionPipeline
|
5 |
+
|
6 |
+
pipe = DiffusionPipeline.from_pretrained("THUDM/CogVideoX-5b")
|
7 |
+
|
8 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
9 |
+
image = pipe(prompt).images[0]
|
10 |
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
model_repo_id = "stabilityai/sdxl-turbo" # Replace to the model you would like to use
|