Skip to content

Commit

Permalink
fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shankar-vision-eng committed Aug 28, 2024
1 parent 10b3151 commit 8ee040e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integ/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_countgd_counting() -> None:
def test_countgd_example_based_counting() -> None:
img = ski.data.coins()
result = countgd_example_based_counting(
visual_prompt=[[85, 106, 122, 145]],
visual_prompts=[[85, 106, 122, 145]],
image=img,
)
assert result["count"] == 24
Expand Down
4 changes: 2 additions & 2 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def countgd_counting(
"box_threshold": box_threshold,
"function_name": "countgd_counting",
}
data: Dict[str, Any] = send_inference_request(
data: List[Dict[str, Any]] = send_inference_request(
payload, "countgd_counting", files=files, v2=True
)
return data
Expand Down Expand Up @@ -588,7 +588,7 @@ def countgd_example_based_counting(
"box_threshold": box_threshold,
"function_name": "countgd_example_based_counting",
}
data: Dict[str, Any] = send_inference_request(
data: List[Dict[str, Any]] = send_inference_request(
payload, "countgd_example_based_counting", files=files, v2=True
)
return data
Expand Down

0 comments on commit 8ee040e

Please sign in to comment.