Add local image embedding impls

This commit is contained in:
liyaxing
2023-09-26 20:13:55 +08:00
committed by tsukasa
parent 5f346b1bd9
commit 451ab5e0a8
5 changed files with 182 additions and 13 deletions
+1
View File
@@ -20,6 +20,7 @@ root.addHandler(handler)
def test_st():
image_model = SentenceTransformer('clip-ViT-B-32-multilingual-v1')
model = SentenceTransformer("all-MiniLM-L6-v2")
# Our sentences we like to encode