Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ from pinecone import Pinecone
|
|
27 |
# PINECONE_API_KEY = "555c0e70-331d-4b43-aac7-5b3aac5078d6"
|
28 |
pc = Pinecone(api_key=PINECONE_API_KEY)
|
29 |
|
30 |
-
os.environ["
|
31 |
-
|
32 |
# Set other LangChain configurations as environment variables
|
33 |
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
34 |
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|
|
|
27 |
# PINECONE_API_KEY = "555c0e70-331d-4b43-aac7-5b3aac5078d6"
|
28 |
pc = Pinecone(api_key=PINECONE_API_KEY)
|
29 |
|
30 |
+
os.environ["OPENAI_API_KEY"] = st.secrets["api_keys"]["OPENAI_API_KEY"]
|
31 |
+
os.environ["LANGCHAIN_API_KEY"] = st.secrets["api_keys"]["LANGCHAIN_API_KEY"]
|
32 |
# Set other LangChain configurations as environment variables
|
33 |
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
34 |
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|