thoristhor commited on
Commit
e26b4b7
1 Parent(s): 7bd5936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,7 +10,8 @@ from langchain.agents import initialize_agent
10
 
11
  OPENAI_API_KEY=os.environ["OPENAI_API_KEY"]
12
  PINECONE_API_KEY=os.environ["PINECONE_API_KEY"]
13
- PINECONE_ENV=os.environ.get["PINECONE_ENV"]
 
14
 
15
  pindex=pinecone.Index("sethgodin")
16
  pinedex=GPTPineconeIndex([], pinecone_index=pindex)
 
10
 
11
  OPENAI_API_KEY=os.environ["OPENAI_API_KEY"]
12
  PINECONE_API_KEY=os.environ["PINECONE_API_KEY"]
13
+
14
+ pinecone.init(api_key=PINECONE_API_KEY, environment="us-east1-gcp")
15
 
16
  pindex=pinecone.Index("sethgodin")
17
  pinedex=GPTPineconeIndex([], pinecone_index=pindex)