Spaces:
Sleeping
Sleeping
Update ImageGenerator.py
Browse files- ImageGenerator.py +1 -1
ImageGenerator.py
CHANGED
|
@@ -120,7 +120,7 @@ import torch
|
|
| 120 |
|
| 121 |
model_id = "sd-legacy/stable-diffusion-v1-5"
|
| 122 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 123 |
-
pipe = pipe.to("cuda")
|
| 124 |
def generate_image(prompt):
|
| 125 |
# Get the part after the dash
|
| 126 |
if "-" in prompt:
|
|
|
|
| 120 |
|
| 121 |
model_id = "sd-legacy/stable-diffusion-v1-5"
|
| 122 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 123 |
+
# pipe = pipe.to("cuda")
|
| 124 |
def generate_image(prompt):
|
| 125 |
# Get the part after the dash
|
| 126 |
if "-" in prompt:
|