Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,7 @@
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
-
from
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
model = INSTRUCTOR("hkunlp/instructor-base")
|
| 7 |
-
|
| 8 |
documents = load_documents("vault")
|
| 9 |
texts, embeddings, metadatas = embed_documents(documents, model)
|
| 10 |
collection = create_vector_db(texts, embeddings, metadatas)
|
|
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
+
from sentence_transformers import SentenceTransformer
|
| 4 |
+
model = SentenceTransformer("all-MiniLM-L6-v2")
|
|
|
|
|
|
|
|
|
|
| 5 |
documents = load_documents("vault")
|
| 6 |
texts, embeddings, metadatas = embed_documents(documents, model)
|
| 7 |
collection = create_vector_db(texts, embeddings, metadatas)
|