Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,8 +86,6 @@ def get_vectorstore(text_chunks):
|
|
86 |
embeddings = HuggingFaceBgeEmbeddings(
|
87 |
model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
|
88 |
)
|
89 |
-
print("length of text_chunks:"+str(len(text_chunks)))
|
90 |
-
print("length of embeddings:"+str(len(embeddings)))
|
91 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
92 |
return vectorstore
|
93 |
|
|
|
86 |
embeddings = HuggingFaceBgeEmbeddings(
|
87 |
model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
|
88 |
)
|
|
|
|
|
89 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
90 |
return vectorstore
|
91 |
|