Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def get_pipeline(
|
|
15 |
pipe = None
|
16 |
|
17 |
model_id = "./models"
|
18 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.
|
19 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
20 |
|
21 |
# if enable_cpu_offload:
|
|
|
15 |
pipe = None
|
16 |
|
17 |
model_id = "./models"
|
18 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32, safety_checker=None, requires_safety_checker=False).to("cpu")
|
19 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
20 |
|
21 |
# if enable_cpu_offload:
|