ashwinaravind commited on
Commit
e158c7f
·
verified ·
1 Parent(s): 3edc835

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import os
5
  OPENAI_SECRET_TOKEN = os.getenv("OPENAI_SECRET_TOKEN")
6
  PINECONE_SECRET_TOKEN = os.getenv("PINECONE_SECRET_TOKEN")
7
  from pinecone import Pinecone
8
- pc = Pinecone(api_key='72f7d24d-c080-4ce6-a060-a489713284cb')
9
  index_name = 'serverless-index'
10
  # connect to index
11
  index = pc.Index(index_name)
 
5
  OPENAI_SECRET_TOKEN = os.getenv("OPENAI_SECRET_TOKEN")
6
  PINECONE_SECRET_TOKEN = os.getenv("PINECONE_SECRET_TOKEN")
7
  from pinecone import Pinecone
8
+ pc = Pinecone(api_key=PINECONE_SECRET_TOKEN)
9
  index_name = 'serverless-index'
10
  # connect to index
11
  index = pc.Index(index_name)