Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,7 @@ import gradio as gr
|
|
| 2 |
from diffusers import DDPMPipeline
|
| 3 |
|
| 4 |
# Load model
|
| 5 |
-
pipe = DDPMPipeline.from_pretrained("google/ddpm-
|
| 6 |
-
|
| 7 |
def generate():
|
| 8 |
image = pipe().images[0]
|
| 9 |
return image
|
|
|
|
| 2 |
from diffusers import DDPMPipeline
|
| 3 |
|
| 4 |
# Load model
|
| 5 |
+
pipe = DDPMPipeline.from_pretrained("google/ddpm-cifar10-32")
|
|
|
|
| 6 |
def generate():
|
| 7 |
image = pipe().images[0]
|
| 8 |
return image
|