sdafd commited on
Commit
d424f9c
·
verified ·
1 Parent(s): 61182f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(pil_img.height/8)), width=int(8*round(pil_img.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):
 
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):