Skip to content

Commit

Permalink
fix qwenvlplus
Browse files Browse the repository at this point in the history
  • Loading branch information
kennymckormick committed Jan 18, 2024
1 parent 280e638 commit 7f099c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlmeval/api/qwen_vl_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def build_msgs(msgs_raw, system_prompt=None):
content = list(dict(text=system_prompt))
ret.append(dict(role='system', content=content))
content = []
for i,msg in enumerate(msgs):
for i, msg in enumerate(msgs):
if osp.exists(msg):
content.append(dict(image='file://' + msg))
elif msg.startswith('http'):
Expand All @@ -62,7 +62,7 @@ def generate_inner(self, inputs, **kwargs) -> str:
try:
response = MultiModalConversation.call(model=model, messages=messages)
if self.verbose:
print(response.text)
print(response)
answer = response.output.choices[0]['message']['content'][0]['text']
return 0, answer, 'Succeeded! '
except Exception as err:
Expand Down

0 comments on commit 7f099c1

Please sign in to comment.