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