OriLib commited on
Commit
58b6ce5
1 Parent(s): 7a7235f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -53,9 +53,10 @@ def process(image):
53
  # paste the mask on the original image
54
  new_im = Image.new("RGBA", pil_im.size, (0,0,0,0))
55
  new_im.paste(orig_image, mask=pil_im)
 
56
 
57
  # return new_im
58
- return [new_im, new_im]
59
 
60
 
61
  # block = gr.Blocks().queue()
 
53
  # paste the mask on the original image
54
  new_im = Image.new("RGBA", pil_im.size, (0,0,0,0))
55
  new_im.paste(orig_image, mask=pil_im)
56
+ new_orig_image = new_orig_image.convert('RGBA')
57
 
58
  # return new_im
59
+ return [new_orig_image, new_im]
60
 
61
 
62
  # block = gr.Blocks().queue()