pcuenq HF staff commited on
Commit
4a3a505
·
verified ·
1 Parent(s): 58952db

Fix multiple image snippet

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -149,14 +149,13 @@ messages = [
149
  {
150
  "role": "user",
151
  "content": [
152
- {"type": "text", "text": "What is the similarity between this image <image>"},
153
-
154
- {"type": "image", "path": "image_1.png"},
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,