Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
|
19 |
def inpaint_image(image, mask, prompt, negative_prompt):
|
20 |
# Convert PIL images to numpy arrays if needed
|
21 |
# Process your images as required by your inpainting model
|
22 |
-
n_image = pipe(prompt, image=image, mask_image=mask, guidance_scale=5,height=int(8*round(
|
23 |
return n_image
|
24 |
|
25 |
def process_files(image_file, mask_file, prompt, negative_prompt):
|
|
|
19 |
def inpaint_image(image, mask, prompt, negative_prompt):
|
20 |
# Convert PIL images to numpy arrays if needed
|
21 |
# Process your images as required by your inpainting model
|
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 |
|
25 |
def process_files(image_file, mask_file, prompt, negative_prompt):
|