Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,7 @@ pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
|
18 |
pipe.to('cpu')
|
19 |
|
20 |
def inpaint_image(image, mask, prompt, negative_prompt):
|
21 |
-
|
22 |
-
# Process your images as required by your inpainting model
|
23 |
n_image = pipe(prompt, image=image, mask_image=mask, guidance_scale=5,height=int(8*round(image.height/8)), width=int(8*round(image.width/8)), num_inference_steps=70,negative_prompt=negative_prompt).images[0]
|
24 |
return n_image
|
25 |
|
|
|
18 |
pipe.to('cpu')
|
19 |
|
20 |
def inpaint_image(image, mask, prompt, negative_prompt):
|
21 |
+
print(image_file, mask_file, prompt, negative_prompt)
|
|
|
22 |
n_image = pipe(prompt, image=image, mask_image=mask, guidance_scale=5,height=int(8*round(image.height/8)), width=int(8*round(image.width/8)), num_inference_steps=70,negative_prompt=negative_prompt).images[0]
|
23 |
return n_image
|
24 |
|