From bb039801a9d198e760881a995e05c7ef5bf6e4c3 Mon Sep 17 00:00:00 2001 From: sonam Date: Mon, 15 Apr 2024 21:44:31 +0200 Subject: [PATCH] Update README.md import anything --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d80cb51e..a36f0c13 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ pip install embed-anything` ### To use local embedding: we support Bert and Jina ```python -from embed_anything import * +import embed_anything data = embed_anything.embed_file("filename.pdf", embeder= "Bert") embeddings = np.array([data.embedding for data in data]) ``` @@ -53,7 +53,7 @@ embeddings = np.array([data.embedding for data in data]) ### Requirements Directory with pictures you want to search for example we have test_files with images of cat, dogs etc ```python -from embed_anything import * +import embed_anything data = embed_anything.embed_directory("test_files", embeder= "Clip") embeddings = np.array([data.embedding for data in data])