Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
shankar-vision-eng committed Apr 27, 2024
1 parent 8766f83 commit cd9932c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import requests
from PIL import Image
from PIL.Image import Image as ImageType
from scipy.spatial import distance
from scipy.spatial import distance # type: ignore

from vision_agent.image_utils import (
b64_to_pil,
Expand Down Expand Up @@ -603,12 +603,12 @@ def __call__(
"""
image_size = get_image_size(image)
bbox = prompt["bbox"]
prompt = ", ".join(map(str, denormalize_bbox(bbox, image_size)))
bbox_str = ", ".join(map(str, denormalize_bbox(bbox, image_size)))
image_b64 = convert_to_b64(image)

data = {
"image": image_b64,
"prompt": prompt,
"prompt": bbox_str,
"tool": "few_shot_counting",
}
resp_data = _send_inference_request(data, "tools")
Expand Down

0 comments on commit cd9932c

Please sign in to comment.