Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import torch
|
|
4 |
import numpy as np
|
5 |
|
6 |
model_id = "prompthero/openjourney"
|
7 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.
|
|
|
8 |
|
9 |
def generate_image(prompt):
|
10 |
image = pipe(prompt).images[0]
|
|
|
4 |
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):
|
11 |
image = pipe(prompt).images[0]
|