Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ import torch
|
|
| 5 |
# Load the model and set up the pipeline
|
| 6 |
model_id = "prompthero/openjourney"
|
| 7 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 8 |
-
pipe = pipe.to("cuda")
|
| 9 |
|
| 10 |
def generate_image(prompt):
|
| 11 |
image = pipe(prompt).images[0]
|
|
|
|
| 5 |
# Load the model and set up the pipeline
|
| 6 |
model_id = "prompthero/openjourney"
|
| 7 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
|
|
|
| 8 |
|
| 9 |
def generate_image(prompt):
|
| 10 |
image = pipe(prompt).images[0]
|