Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,6 +102,7 @@ def main(user_image):
|
|
102 |
# # resize the image to be (512, 512)
|
103 |
newsize = (512, 512)
|
104 |
init_image = init_image.resize(newsize)
|
|
|
105 |
init_image.save(user_image.name) # save the resized image
|
106 |
## identify the face + save the inverted mask
|
107 |
inverted_mask = identify_face(user_image)
|
|
|
102 |
# # resize the image to be (512, 512)
|
103 |
newsize = (512, 512)
|
104 |
init_image = init_image.resize(newsize)
|
105 |
+
init_image.rotate(-90)
|
106 |
init_image.save(user_image.name) # save the resized image
|
107 |
## identify the face + save the inverted mask
|
108 |
inverted_mask = identify_face(user_image)
|