Update README.md
Browse files
README.md
CHANGED
@@ -40,8 +40,8 @@ cos_sim = lambda a,b: (a @ b.T) / (norm(a)*norm(b))
|
|
40 |
|
41 |
model = AutoModel.from_pretrained('jinaai/jina-clip-v1', trust_remote_code=True)
|
42 |
|
43 |
-
sentences = ['
|
44 |
-
images = ['
|
45 |
|
46 |
text_embeddings = model.encode_text(sentences)
|
47 |
image_embeddings = model.encode_image(images)
|
|
|
40 |
|
41 |
model = AutoModel.from_pretrained('jinaai/jina-clip-v1', trust_remote_code=True)
|
42 |
|
43 |
+
sentences = ['The Eiffel Tower is in Paris.', 'The capital of France is Paris.']
|
44 |
+
images = ['tower.jpg', 'paris.jpg'] # here we use filenames, but it also accepts URL, PIL.Image objects and dataURI strings
|
45 |
|
46 |
text_embeddings = model.encode_text(sentences)
|
47 |
image_embeddings = model.encode_image(images)
|