Spaces:
Runtime error
Runtime error
Commit ·
8a6d670
1
Parent(s): ed68d30
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from diffusers import DiffusionPipeline
|
|
| 6 |
|
| 7 |
def generate(prompt):
|
| 8 |
pipeline = DiffusionPipeline.from_pretrained("Lykon/DreamShaper")
|
| 9 |
-
pipeline.to("
|
| 10 |
return pipeline(prompt).images[0]
|
| 11 |
|
| 12 |
iface = gr.Interface(fn=generate, inputs="text", outputs="image")
|
|
|
|
| 6 |
|
| 7 |
def generate(prompt):
|
| 8 |
pipeline = DiffusionPipeline.from_pretrained("Lykon/DreamShaper")
|
| 9 |
+
pipeline.to("cpu")
|
| 10 |
return pipeline(prompt).images[0]
|
| 11 |
|
| 12 |
iface = gr.Interface(fn=generate, inputs="text", outputs="image")
|