Akjava commited on
Commit
1bb37af
1 Parent(s): 7c945b6

support mask

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def process_images(image, image2=None,inpaint_radius=3,blur_radius=25,edge_expan
34
 
35
  output = opencvinpaint.process_image(image["background"],mask,inpaint_radius,blur_radius,edge_expand,inpaint_mode)
36
 
37
- return output
38
 
39
 
40
  # code from https://huggingface.co/spaces/diffusers/stable-diffusion-xl-inpainting/blob/main/app.py
 
34
 
35
  output = opencvinpaint.process_image(image["background"],mask,inpaint_radius,blur_radius,edge_expand,inpaint_mode)
36
 
37
+ return output,mask
38
 
39
 
40
  # code from https://huggingface.co/spaces/diffusers/stable-diffusion-xl-inpainting/blob/main/app.py