Skip to content

Commit

Permalink
BREAKING CHANGE: use extract_liveness instead extract_face_pad in sel…
Browse files Browse the repository at this point in the history
…fie Face method (#97)
  • Loading branch information
acostapazo committed Dec 29, 2023
1 parent 3fdd21e commit 63c5d8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alice/face/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def healthcheck(self) -> Response:
def selfie(
self,
media: bytes,
extract_face_pad: bool = True,
extract_liveness: bool = True,
extract_face_profile: bool = True,
headers: Union[Dict[str, str], None] = None,
) -> Result[SelfieResult, FaceError]:
Expand All @@ -60,7 +60,7 @@ def selfie(
headers={"apikey": self.api_key} | headers,
files={"media": media},
data={
"extract_face_pad": extract_face_pad,
"extract_liveness": extract_liveness,
"extract_face_profile": extract_face_profile,
},
)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
zip_safe=False,
install_requires=REQUIRES,
Expand Down

0 comments on commit 63c5d8e

Please sign in to comment.