Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def get_text_chunks(text):
|
|
| 33 |
|
| 34 |
|
| 35 |
def get_vectorstore(text_chunks):
|
| 36 |
-
embeddings =
|
| 37 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
| 38 |
return vectorstore
|
| 39 |
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
def get_vectorstore(text_chunks):
|
| 36 |
+
embeddings = HuggingFaceEmbeddings(model_name="hkunlp/instructor-xl")
|
| 37 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
| 38 |
return vectorstore
|
| 39 |
|