ProfessorLeVesseur
commited on
Commit
•
f3e227d
1
Parent(s):
1f1be9c
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,19 @@ from pinecone import Pinecone
|
|
26 |
PINECONE_API_KEY = "555c0e70-331d-4b43-aac7-5b3aac5078d6"
|
27 |
pc = Pinecone(api_key=PINECONE_API_KEY)
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
|
31 |
|
|
|
26 |
PINECONE_API_KEY = "555c0e70-331d-4b43-aac7-5b3aac5078d6"
|
27 |
pc = Pinecone(api_key=PINECONE_API_KEY)
|
28 |
|
29 |
+
# Hardcode the OpenAI API key
|
30 |
+
OPENAI_API_KEY = "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"
|
31 |
+
|
32 |
+
# import os
|
33 |
+
# Retrieve OpenAI API key from environment variables
|
34 |
+
openai_api_key = os.getenv('OPENAI_API_KEY')
|
35 |
+
# Initialize the OpenAI service with API key
|
36 |
+
openai.api_key = openai_api_key
|
37 |
+
|
38 |
+
# AUTHENTICATE/INITIALIZE PINCONE SERVICE
|
39 |
+
from pinecone import Pinecone
|
40 |
+
pc = Pinecone()
|
41 |
+
|
42 |
|
43 |
|
44 |
|