Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyiqunLu committed Sep 10, 2024
1 parent 5ef03f2 commit 2a8c779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import copy
import json
import logging
import os
import tempfile
Expand Down Expand Up @@ -225,6 +224,7 @@ def chat_with_code(
if "media" in chat_i:
for media in chat_i["media"]:
if type(media) is str and media.startswith(("http", "https")):
# TODO: Ideally we should not call VA.tools here, we should come to revisit how to better support remote image later
file_path = Path(media).name
ndarray = load_image(media)
save_image(ndarray, file_path)
Expand Down

0 comments on commit 2a8c779

Please sign in to comment.