Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,9 @@ if 'session_id' not in st.session_state:
|
|
43 |
# Initialize Pinecone client
|
44 |
api_key = os.environ["api_key"]
|
45 |
|
46 |
-
#
|
47 |
-
Pinecone
|
|
|
48 |
index_name = "canopy--document-uploader" # Replace with your chosen index name
|
49 |
|
50 |
index = Pinecone.Index(name=index_name)
|
|
|
43 |
# Initialize Pinecone client
|
44 |
api_key = os.environ["api_key"]
|
45 |
|
46 |
+
# configure client
|
47 |
+
pc = Pinecone(api_key=api_key)
|
48 |
+
|
49 |
index_name = "canopy--document-uploader" # Replace with your chosen index name
|
50 |
|
51 |
index = Pinecone.Index(name=index_name)
|