Update app.py
Browse files
app.py
CHANGED
@@ -53,10 +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 |
-
new_orig_image =
|
57 |
|
58 |
# return new_im
|
59 |
-
return [
|
60 |
|
61 |
|
62 |
# 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 = orig_image.convert('RGBA')
|
57 |
|
58 |
# return new_im
|
59 |
+
return [new_orig_image, new_im]
|
60 |
|
61 |
|
62 |
# block = gr.Blocks().queue()
|