Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from datetime import datetime
|
|
| 6 |
# Load the model
|
| 7 |
model_id = "stabilityai/stable-diffusion-2"
|
| 8 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 9 |
-
pipe = pipe.to("
|
| 10 |
|
| 11 |
# Keep image history
|
| 12 |
image_history = []
|
|
|
|
| 6 |
# Load the model
|
| 7 |
model_id = "stabilityai/stable-diffusion-2"
|
| 8 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 9 |
+
pipe = pipe.to("cpu")
|
| 10 |
|
| 11 |
# Keep image history
|
| 12 |
image_history = []
|