Skip to content

Commit

Permalink
address PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero committed Oct 18, 2023
1 parent 867ffac commit 76212eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/groundlight/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,7 @@ def ask_async( # noqa: PLR0913 # pylint: disable=too-many-arguments
assert image_query.result is not None
# alternatively, you can check if the result is available (without blocking) by calling
# gl.get_image_query() with the id of the image_query above. This will return the image_query,
# but the result may still be None or UNCLEAR.
# gl.get_image_query() with the id of the image_query above.
image_query = gl.get_image_query(image_query.id)
"""
return self.submit_image_query(
Expand Down Expand Up @@ -662,7 +661,7 @@ def add_label(self, image_query: Union[ImageQuery, str], label: Union[Label, str
else:
image_query_id = str(image_query)
# Some old imagequery id's started with "chk_"
# TODO: handle iqe
# TODO: handle iqe_ for image_queries returned from edge endpoints
if not image_query_id.startswith(("chk_", "iq_")):
raise ValueError(f"Invalid image query id {image_query_id}")
api_label = convert_display_label_to_internal(image_query_id, label)
Expand Down

0 comments on commit 76212eb

Please sign in to comment.