Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,10 @@ embeddings = OpenAIEmbeddings()
|
|
37 |
|
38 |
|
39 |
# Create document search
|
40 |
-
document_search = FAISS.from_texts(texts, embeddings)
|
41 |
|
42 |
#########################################################
|
43 |
-
document_search.save_local("faiss_index")
|
44 |
|
45 |
#below lines loads the vectorized data that was saved in previous code line
|
46 |
new_document_search = FAISS.load_local("faiss_index", embeddings)
|
|
|
37 |
|
38 |
|
39 |
# Create document search
|
40 |
+
#->document_search = FAISS.from_texts(texts, embeddings)
|
41 |
|
42 |
#########################################################
|
43 |
+
#->document_search.save_local("faiss_index")
|
44 |
|
45 |
#below lines loads the vectorized data that was saved in previous code line
|
46 |
new_document_search = FAISS.load_local("faiss_index", embeddings)
|