Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
AsiaCao committed Apr 23, 2024
1 parent c325965 commit 884ccde
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,12 @@ def chat_with_workflow(
)

if visualize_output:
viz_images = all_tool_results[-1]["visualized_output"]
viz_images: Sequence[Union[str, Path]] = all_tool_results[-1][
"visualized_output"
]
self._report_visualization_via_callback(viz_images)
for image in viz_images:
Image.open(image).show()
for img in viz_images:
Image.open(img).show()

return final_answer, all_tool_results

Expand Down

0 comments on commit 884ccde

Please sign in to comment.