Merge pull request #91 from zubin999/master

修改字符报错
This commit is contained in:
Dongle
2025-03-14 15:39:40 +08:00
committed by GitHub

View File

@@ -125,7 +125,7 @@ def process_input(user_input, state, vision_agent_state):
for content in message["content"]:
# convert image_url to gradio image format
if content["type"] == "image_url":
gradio_chatbox_content += f'<br/><img style="width: 100%;" src="{content['image_url']["url"]}">'
gradio_chatbox_content += f'<br/><img style="width: 100%;" src="{content["image_url"]["url"]}">'
# convert text to gradio text format
elif content["type"] == "text":
# agent response is json format and must contains reasoning