pcuenq HF Staff commited on
Commit
eec888b
·
verified ·
1 Parent(s): 58952db

Code snippet changes

Browse files

- Make the image snippet runnable
- Place image first (as I saw in the PR examples)

Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -83,9 +83,8 @@ messages = [
83
  {
84
  "role": "user",
85
  "content": [
86
- {"type": "text", "text": "What is in this image?"},
87
- {"type": "image", "path": "path_to_img.png"},
88
-
89
  ]
90
  },
91
  ]
 
83
  {
84
  "role": "user",
85
  "content": [
86
+ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
87
+ {"type": "text", "text": "Can you describe this image?"},
 
88
  ]
89
  },
90
  ]