[Misc] Fix typo in the example file (#12896)

Signed-off-by: Zhao Ke <yingxiongraomingzk@gmail.com>
This commit is contained in:
Ke Zhao 2025-02-08 14:56:43 +08:00 committed by GitHub
parent 306923da82
commit cc01223f3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ def vlm2vec():
def dse_qwen2_vl(inp: dict):
# Embedding an Image
if inp["dtype"] == "image":
if inp["type"] == "image":
messages = [{
"role":
"user",
@ -113,10 +113,10 @@ if __name__ == '__main__':
vlm2vec()
elif args.model == "dse_qwen2_vl":
dse_qwen2_vl({
"dtye": "image",
"type": "image",
"image_url": image_url,
})
dse_qwen2_vl({
"dtype": "text",
"type": "text",
"content": "What is the weather like today?",
})