Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,8 @@ safety_checker.StableDiffusionSafetyChecker.forward = sc
|
|
| 12 |
|
| 13 |
# Initialize the inpainting pipeline
|
| 14 |
pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
| 15 |
-
|
|
|
|
| 16 |
)
|
| 17 |
pipe.to('cpu')
|
| 18 |
|
|
|
|
| 12 |
|
| 13 |
# Initialize the inpainting pipeline
|
| 14 |
pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
| 15 |
+
"stabilityai/stable-diffusion-2-inpainting",
|
| 16 |
+
torch_dtype=torch.float32,
|
| 17 |
)
|
| 18 |
pipe.to('cpu')
|
| 19 |
|