Fix multiple image snippet
#12
by
pcuenq
HF staff
- opened
README.md
CHANGED
@@ -149,14 +149,13 @@ messages = [
|
|
149 |
{
|
150 |
"role": "user",
|
151 |
"content": [
|
152 |
-
{"type": "text", "text": "What is the similarity between
|
153 |
-
|
154 |
-
|
155 |
-
{"type": "text", "text": "and this image <image>"},
|
156 |
-
{"type": "image", "path": "image_2.png"},
|
157 |
]
|
158 |
},
|
159 |
]
|
|
|
160 |
inputs = processor.apply_chat_template(
|
161 |
messages,
|
162 |
add_generation_prompt=True,
|
|
|
149 |
{
|
150 |
"role": "user",
|
151 |
"content": [
|
152 |
+
{"type": "text", "text": "What is the similarity between these two images?"},
|
153 |
+
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
|
154 |
+
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/0052a70beed5bf71b92610a43a52df6d286cd5f3/diffusers/rabbit.jpg"},
|
|
|
|
|
155 |
]
|
156 |
},
|
157 |
]
|
158 |
+
|
159 |
inputs = processor.apply_chat_template(
|
160 |
messages,
|
161 |
add_generation_prompt=True,
|