Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import numpy as np
|
|
5 |
|
6 |
model_id = "prompthero/openjourney"
|
7 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
|
|
|
8 |
|
9 |
|
10 |
def generate_image(prompt):
|
|
|
5 |
|
6 |
model_id = "prompthero/openjourney"
|
7 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
|
8 |
+
pipe = pipe.to("cpu")
|
9 |
|
10 |
|
11 |
def generate_image(prompt):
|