Skip to content

Commit

Permalink
Fixing inspection submit iq
Browse files Browse the repository at this point in the history
  • Loading branch information
robotrapta committed Feb 14, 2024
1 parent 2016f71 commit ba2e06e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/groundlight/internalapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def submit_image_query_with_inspection( # noqa: PLR0913 # pylint: disable=too-m
human_review: str = "DEFAULT",
metadata: Optional[dict] = None,
want_async: Optional[bool] = False,
_request_timeout: Optional[float] = None,
) -> str:
"""Submits an image query to the API and returns the ID of the image query.
The image query will be associated to the inspection_id provided.
Expand Down Expand Up @@ -289,7 +290,13 @@ def submit_image_query_with_inspection( # noqa: PLR0913 # pylint: disable=too-m
headers["Content-Type"] = "image/jpeg"

response = requests.request(
"POST", url, headers=headers, params=params, data=body.read(), verify=self.configuration.verify_ssl
"POST",
url,
headers=headers,
params=params,
data=body.read(),
verify=self.configuration.verify_ssl,
timeout=_request_timeout,
)

if not is_ok(response.status_code):
Expand Down

0 comments on commit ba2e06e

Please sign in to comment.