Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kennymckormick committed Mar 23, 2024
1 parent 7c9bcc5 commit f92be3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vlmeval/vlm/llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,7 @@ def generate(self, image_path, prompt, dataset=None):

if '</s>' in answer:
answer = answer.split('</s>')[0].strip()
if '<|im_end|>' in answer:
answer = answer.split('<|im_end|>')[0].strip()

return answer

0 comments on commit f92be3a

Please sign in to comment.