pipe = pipeline("image-text-to-text", model="zai-org/GLM-4.6V-Flash")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "
https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
pipe(text=messages)