Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ import torch
|
|
5 |
pipeline = StableDiffusionInpaintPipeline.from_pretrained(
|
6 |
"runwayml/stable-diffusion-inpainting",
|
7 |
torch_dtype=torch.float16,
|
8 |
-
|
|
|
9 |
)
|
10 |
|
11 |
pipeline = pipeline.to("cuda")
|
|
|
5 |
pipeline = StableDiffusionInpaintPipeline.from_pretrained(
|
6 |
"runwayml/stable-diffusion-inpainting",
|
7 |
torch_dtype=torch.float16,
|
8 |
+
use_safetensors=True,
|
9 |
+
variant="fp16"
|
10 |
)
|
11 |
|
12 |
pipeline = pipeline.to("cuda")
|