Spaces:
Sleeping
Sleeping
Shroogawh24
commited on
Commit
•
1671b9b
1
Parent(s):
e5cb191
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ embedder = SentenceTransformer('all-mpnet-base-v2')
|
|
19 |
#openai.api_key = os.getenv("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")
|
20 |
|
21 |
# Load the FAISS index using LangChain's FAISS implementation
|
22 |
-
db = FAISS.load_local("
|
23 |
parser = StrOutputParser()
|
24 |
|
25 |
# Load your data (e.g., a DataFrame)
|
|
|
19 |
#openai.api_key = os.getenv("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")
|
20 |
|
21 |
# Load the FAISS index using LangChain's FAISS implementation
|
22 |
+
db = FAISS.load_local("Faiss_index", embedder, allow_dangerous_deserialization=True)
|
23 |
parser = StrOutputParser()
|
24 |
|
25 |
# Load your data (e.g., a DataFrame)
|