Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ if len(main_text) > 0:
|
|
57 |
)
|
58 |
texts = text_splitter.create_documents([main_text])
|
59 |
|
60 |
-
embeddings = OpenAIEmbeddings(api_key=
|
61 |
# store in vector db
|
62 |
db = FAISS.from_documents(texts, embeddings)
|
63 |
|
|
|
57 |
)
|
58 |
texts = text_splitter.create_documents([main_text])
|
59 |
|
60 |
+
embeddings = OpenAIEmbeddings(api_key=api_key)
|
61 |
# store in vector db
|
62 |
db = FAISS.from_documents(texts, embeddings)
|
63 |
|