Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def generate_image(prompt):
|
|
56 |
pipe = StableDiffusionPipeline.from_pretrained(model_id)
|
57 |
|
58 |
# If you have a GPU available, uncomment the following line
|
59 |
-
|
60 |
|
61 |
image = pipe(prompt).images[0]
|
62 |
return image
|
|
|
56 |
pipe = StableDiffusionPipeline.from_pretrained(model_id)
|
57 |
|
58 |
# If you have a GPU available, uncomment the following line
|
59 |
+
pipe = pipe.to("cuda")
|
60 |
|
61 |
image = pipe(prompt).images[0]
|
62 |
return image
|