Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -113,6 +113,7 @@ def main(user_image):
|
|
113 |
init_image.save(user_image.name) # save the resized image
|
114 |
## identify the face + save the inverted mask
|
115 |
inverted_mask = identify_face(user_image)
|
|
|
116 |
fp = tempfile.NamedTemporaryFile(mode='wb', suffix=".png")
|
117 |
cv2.imwrite(fp.name, inverted_mask) # save the inverted image mask
|
118 |
pil_inverted_mask = PIL.Image.open(fp.name).convert("RGB")
|
|
|
113 |
init_image.save(user_image.name) # save the resized image
|
114 |
## identify the face + save the inverted mask
|
115 |
inverted_mask = identify_face(user_image)
|
116 |
+
print("inverted_mask: ", inverted_mask)
|
117 |
fp = tempfile.NamedTemporaryFile(mode='wb', suffix=".png")
|
118 |
cv2.imwrite(fp.name, inverted_mask) # save the inverted image mask
|
119 |
pil_inverted_mask = PIL.Image.open(fp.name).convert("RGB")
|