Skip to content

Commit dbdb9b3

Browse files
committed
formatting fix
1 parent 5e33fcc commit dbdb9b3

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

vision_agent/tools/meta_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def show(self, uploaded_file_path: Optional[Union[str, Path]] = None) -> str:
116116
)
117117
output_str = "[Artifacts loaded]\n"
118118
for k in self.artifacts.keys():
119-
output_str += f"Artifact name: {k}, loaded to path: {str(loaded_path / k)}\n"
119+
output_str += (
120+
f"Artifact name: {k}, loaded to path: {str(loaded_path / k)}\n"
121+
)
120122
output_str += "[End of artifacts]\n"
121123
print(output_str)
122124
return output_str

vision_agent/tools/tool_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import os
21
import inspect
32
import logging
3+
import os
44
from base64 import b64encode
55
from typing import Any, Callable, Dict, List, MutableMapping, Optional, Tuple
66

vision_agent/tools/tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,9 @@ def save_image(image: np.ndarray, file_path: str) -> None:
18081808
"""
18091809
from IPython.display import display
18101810

1811-
if not isinstance(image, np.ndarray) or (image.shape[0] == 0 and image.shape[1] == 0):
1811+
if not isinstance(image, np.ndarray) or (
1812+
image.shape[0] == 0 and image.shape[1] == 0
1813+
):
18121814
raise ValueError("The image is not a valid NumPy array with shape (H, W, C)")
18131815

18141816
pil_image = Image.fromarray(image.astype(np.uint8)).convert("RGB")
@@ -1844,7 +1846,9 @@ def save_video(
18441846
if not isinstance(frame, np.ndarray) or (
18451847
frame.shape[0] == 0 and frame.shape[1] == 0
18461848
):
1847-
raise ValueError("The frame is not a valid NumPy array with shape (H, W, C)")
1849+
raise ValueError(
1850+
"The frame is not a valid NumPy array with shape (H, W, C)"
1851+
)
18481852

18491853
if output_video_path is None:
18501854
output_video_path = tempfile.NamedTemporaryFile(

vision_agent/tools/tools_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from enum import Enum
2-
from uuid import UUID
32
from typing import List, Optional, Tuple, Union
3+
from uuid import UUID
44

55
from pydantic import BaseModel, ConfigDict, Field, SerializationInfo, field_serializer
66

0 commit comments

Comments
 (0)