Skip to content

Commit

Permalink
Merge branch 'main' of github.com:haotian-liu/LLaVA into main
Browse files Browse the repository at this point in the history
  • Loading branch information
haotian-liu committed Feb 6, 2024
2 parents 329e070 + f1c3c01 commit 159c8b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llava/serve/gradio_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ def add_text(state, text, image, image_process_mode, request: gr.Request):
# text = '<Image><image></Image>' + text
text = text + '\n<image>'
text = (text, image, image_process_mode)
if len(state.get_images(return_pil=True)) > 0:
state = default_conversation.copy()
state = default_conversation.copy()
state.append_message(state.roles[0], text)
state.append_message(state.roles[1], None)
state.skip_next = False
Expand Down

0 comments on commit 159c8b0

Please sign in to comment.