Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import torch
|
|
| 4 |
|
| 5 |
# Load the Stable Diffusion model
|
| 6 |
pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1", torch_dtype=torch.float16)
|
| 7 |
-
pipe = pipe.to("
|
| 8 |
|
| 9 |
# Define the image generation function
|
| 10 |
def generate_comic_image(prompt):
|
|
|
|
| 4 |
|
| 5 |
# Load the Stable Diffusion model
|
| 6 |
pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1", torch_dtype=torch.float16)
|
| 7 |
+
pipe = pipe.to("cpu")
|
| 8 |
|
| 9 |
# Define the image generation function
|
| 10 |
def generate_comic_image(prompt):
|