Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,9 +24,10 @@ def embedding_db():
|
|
| 24 |
embeddings = OpenAIEmbeddings()
|
| 25 |
|
| 26 |
# Initialize Pinecone: Updated method
|
| 27 |
-
|
| 28 |
api_key=PINECONE_API_KEY,
|
| 29 |
-
environment=PINECONE_ENV
|
|
|
|
| 30 |
|
| 31 |
def doc_preprocessing():
|
| 32 |
loader = DirectoryLoader(
|
|
|
|
| 24 |
embeddings = OpenAIEmbeddings()
|
| 25 |
|
| 26 |
# Initialize Pinecone: Updated method
|
| 27 |
+
pc = pinecone.init(
|
| 28 |
api_key=PINECONE_API_KEY,
|
| 29 |
+
environment=PINECONE_ENV
|
| 30 |
+
)
|
| 31 |
|
| 32 |
def doc_preprocessing():
|
| 33 |
loader = DirectoryLoader(
|