Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AsiaCao committed Apr 23, 2024
1 parent 5bc186b commit c325965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_clip():
assert result["scores"] == [1.0]


def test_image_caption():
def test_image_caption() -> None:
img = Image.fromarray(ski.data.coins())
result = ImageCaption()(image=img)
assert result["text"] == ["a black and white photo of a coin"]
assert result["text"]
6 changes: 3 additions & 3 deletions vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,9 @@ def chat_with_workflow(
)

if visualize_output:
visualized_output = all_tool_results[-1]["visualized_output"]
self._report_visualization_via_callback(visualized_output)
for image in visualized_output:
viz_images = all_tool_results[-1]["visualized_output"]
self._report_visualization_via_callback(viz_images)
for image in viz_images:
Image.open(image).show()

return final_answer, all_tool_results
Expand Down

0 comments on commit c325965

Please sign in to comment.