ProfessorLeVesseur commited on
Commit
6b103be
·
verified ·
1 Parent(s): 6ad214c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -185,8 +185,11 @@ pinecone_api_key = st.secrets["pinecone_api_key"]
185
  pinecone_environment = st.secrets["pinecone_environment"]
186
 
187
  # AUTHENTICATE/INITIALIZE PINCONE SERVICE
 
188
  from pinecone import Pinecone
189
- pc = Pinecone(api_key=pinecone_api_key)
 
 
190
 
191
  # Define the name of the Pinecone index
192
  index_name = 'mimtssinkqa'
 
185
  pinecone_environment = st.secrets["pinecone_environment"]
186
 
187
  # AUTHENTICATE/INITIALIZE PINCONE SERVICE
188
+ from langchain_community.vectorstores import Pinecone
189
  from pinecone import Pinecone
190
+ # pc = Pinecone(api_key=pinecone_api_key)
191
+ pc = pinecone.Pinecone(api_key=PINECONE_API_KEY, environment=PINECONE_ENV)
192
+
193
 
194
  # Define the name of the Pinecone index
195
  index_name = 'mimtssinkqa'