Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
|
15 |
revision="fp16",
|
16 |
torch_dtype=torch.float16,
|
17 |
)
|
|
|
18 |
|
19 |
def inpaint_image(image, mask, prompt, negative_prompt):
|
20 |
# Convert PIL images to numpy arrays if needed
|
|
|
15 |
revision="fp16",
|
16 |
torch_dtype=torch.float16,
|
17 |
)
|
18 |
+
pipe.to('cpu')
|
19 |
|
20 |
def inpaint_image(image, mask, prompt, negative_prompt):
|
21 |
# Convert PIL images to numpy arrays if needed
|