Skip to content

Commit

Permalink
Fix default florence command
Browse files Browse the repository at this point in the history
  • Loading branch information
matatonic committed Jun 19, 2024
1 parent bd623a7 commit cbf8b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_qna.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ async def florence_prompt_from_messages(messages: list[Message], url_handler = u
images.extend([ await url_handler(c.image_url.url) ])

for c in m.content:
if c.type == 'text':
if c.type == 'text' and c.text:
prompt = c.text # only one command at a time

return images, prompt
Expand Down

0 comments on commit cbf8b02

Please sign in to comment.