Skip to content

Commit

Permalink
Add base64 prefix to viz image (#67)
Browse files Browse the repository at this point in the history
* Add base64 prefix to viz image

* Fix format
  • Loading branch information
AsiaCao authored Apr 25, 2024
1 parent 1305e05 commit b25b2dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,9 @@ def _report_visualization_via_callback(
self.report_progress_callback("<VIZ>")
if images:
for img in images:
self.report_progress_callback(f"<IMG>{convert_to_b64(img)}</IMG>")
self.report_progress_callback(
f"<IMG>base:64{convert_to_b64(img)}</IMG>"
)
self.report_progress_callback("</VIZ>")

def chat_with_workflow(
Expand Down

0 comments on commit b25b2dd

Please sign in to comment.