hanxiao commited on
Commit
147979c
1 Parent(s): 8ee2c90

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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 = ['How is the weather today?', 'What is the current weather like today?']
44
- images = ['raindrop.jpg', 'sunny.jpg']
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)