Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,11 @@ from diffusers import StableDiffusionInpaintPipeline
|
|
3 |
import torch
|
4 |
|
5 |
pipeline = StableDiffusionInpaintPipeline.from_pretrained(
|
6 |
-
"runwayml/stable-diffusion-inpainting"
|
7 |
-
|
8 |
)
|
9 |
|
10 |
-
|
11 |
|
12 |
def predict(mask_img):
|
13 |
prompt = "a green frog, highly detailed, natural lighting"
|
|
|
3 |
import torch
|
4 |
|
5 |
pipeline = StableDiffusionInpaintPipeline.from_pretrained(
|
6 |
+
"runwayml/stable-diffusion-inpainting",
|
7 |
+
torch_dtype=torch.float16
|
8 |
)
|
9 |
|
10 |
+
pipeline = pipeline.to("cuda")
|
11 |
|
12 |
def predict(mask_img):
|
13 |
prompt = "a green frog, highly detailed, natural lighting"
|