Skip to content

Commit

Permalink
formatting and typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 23, 2024
1 parent c5135c7 commit 669a88b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/custom_tools/run_custom_tool.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from template_match import template_matching_with_rotation

import vision_agent as va
from vision_agent.image_utils import get_image_size, normalize_bbox
from vision_agent.tools import Tool, register_tool

from template_match import template_matching_with_rotation


@register_tool
class TemplateMatch(Tool):
Expand Down
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def __call__(self, image: str) -> dict:
raise ValueError(f"Request failed: {res.text}")

data = res.json()
output = {"labels": [], "bboxes": [], "scores": []}
output: Dict[str, List] = {"labels": [], "bboxes": [], "scores": []}
for det in data[0]:
output["labels"].append(det["text"])
box = [
Expand Down

0 comments on commit 669a88b

Please sign in to comment.