Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayof committed Aug 6, 2024
1 parent 57845ee commit 11d5c58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vision_agent/tools/tool_types.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from typing import List, Tuple
from typing import List, Tuple, Literal

from nptyping import UInt8, NDArray, Shape
from nptyping import UInt8, NDArray
from pydantic import BaseModel, ConfigDict


class BboxInput(BaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True)

image: NDArray[Shape["Height, Width, 3"], UInt8]
image: NDArray[Literal["Height, Width, 3"], UInt8]
filename: str
labels: List[str]
bboxes: List[Tuple[int, int, int, int]]
Expand Down
1 change: 1 addition & 0 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ def generate_pose_image(image: np.ndarray) -> np.ndarray:
data = {
"image": image_b64,
"tool": "generate_pose",
"function_name": "generate_pose_image",
}

answer = send_inference_request(data, "tools")
Expand Down

0 comments on commit 11d5c58

Please sign in to comment.