Commit
·
350ee28
1
Parent(s):
1098b47
Update app.py
Browse files
app.py
CHANGED
@@ -10,11 +10,10 @@ from langchain.document_loaders import PyPDFLoader
|
|
10 |
import gradio as gr
|
11 |
import openai
|
12 |
|
13 |
-
os.environ["OPENAI_API_KEY"] = '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'
|
14 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
15 |
|
16 |
# initialize pinecone
|
17 |
-
pinecone.init(api_key='
|
18 |
environment='us-east1-gcp')
|
19 |
# delete the vectors in the index if there are any
|
20 |
index = pinecone.Index('asesura')
|
|
|
10 |
import gradio as gr
|
11 |
import openai
|
12 |
|
|
|
13 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
14 |
|
15 |
# initialize pinecone
|
16 |
+
pinecone.init(api_key=os.environ['PINECONE_API_KEY'],
|
17 |
environment='us-east1-gcp')
|
18 |
# delete the vectors in the index if there are any
|
19 |
index = pinecone.Index('asesura')
|