diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index 3ed47c3..76df58f 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -1276,6 +1276,7 @@ def create_annotation( value: str, title: str, color: str = None, + order: int = None, attributes: list = [] ) -> str: """ @@ -1297,6 +1298,8 @@ def create_annotation( } if color: payload["color"] = color + if order: + payload["order"] = order if attributes: payload["attributes"] = attributes return self.api.post_request(endpoint, payload=payload) @@ -1322,6 +1325,7 @@ def update_annotation( value: str = None, title: str = None, color: str = None, + order: int = None, attributes: list = [] ) -> str: """ @@ -1341,6 +1345,8 @@ def update_annotation( payload["title"] = title if color: payload["color"] = color + if order: + payload["order"] = order if attributes: payload["attributes"] = attributes return self.api.put_request(endpoint, payload=payload) diff --git a/setup.py b/setup.py index 3bd7ebc..73fb9ab 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name="fastlabel", - version="0.11.6", + version="0.11.7", author="eisuke-ueta", author_email="eisuke.ueta@fastlabel.ai", description="The official Python SDK for FastLabel API, the Data Platform for AI",