JUNJIE99 commited on
Commit
bbd6cd4
·
verified ·
1 Parent(s): 6d00175

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -113,12 +113,11 @@ print(query_embeddings.shape, document_embeddings.shape)
113
  similarities = model.similarity(query_embeddings, document_embeddings)
114
  print(similarities)
115
  # tensor([[0.0685, 0.5379, 0.0423],
116
- # [0.7829, 0.1852, 0.4729])
117
  ```
118
 
119
  Each input is a string, a URL or path, a `PIL.Image`, or a dict combining `image`,
120
- `video`, and `text` keys. Put `image` or `video` before `text` so the prompt matches
121
- the ordering used above. Chat messages such as
122
  `{"role": "user", "content": [{"type": "image", "image": ...}, {"type": "text", "text": ...}]}`
123
  are also accepted, which is the way to interleave several images or videos in one input.
124
 
 
113
  similarities = model.similarity(query_embeddings, document_embeddings)
114
  print(similarities)
115
  # tensor([[0.0685, 0.5379, 0.0423],
116
+ # [0.7829, 0.1852, 0.4729]])
117
  ```
118
 
119
  Each input is a string, a URL or path, a `PIL.Image`, or a dict combining `image`,
120
+ `video`, and `text` keys. Chat messages such as
 
121
  `{"role": "user", "content": [{"type": "image", "image": ...}, {"type": "text", "text": ...}]}`
122
  are also accepted, which is the way to interleave several images or videos in one input.
123