Spaces:
No application file
No application file
Atharva-28
commited on
Commit
•
fe00c6c
1
Parent(s):
9c6431b
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def get_text_chunks(text):
|
|
38 |
def get_vector_store(text_chunks):
|
39 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
40 |
vector_store = FAISS.from_texts(text_chunks, embedding=embeddings)
|
41 |
-
vector_store.save_local("faiss_index")
|
42 |
|
43 |
|
44 |
def get_conversational_chain():
|
|
|
38 |
def get_vector_store(text_chunks):
|
39 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
40 |
vector_store = FAISS.from_texts(text_chunks, embedding=embeddings)
|
41 |
+
vector_store.save_local("faiss_index",allow_dangerous_deserialization=True)
|
42 |
|
43 |
|
44 |
def get_conversational_chain():
|