Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,8 @@ pc = Pinecone(api_key=PINECONE_API_KEY)
|
|
| 33 |
|
| 34 |
###NEW
|
| 35 |
# Retrieve the LangSmith API Key from environment variable
|
| 36 |
-
LANGCHAIN_API_KEY =
|
|
|
|
| 37 |
os.environ["LANGCHAIN_API_KEY"] = str(os.getenv("LANGCHAIN_API_KEY"))
|
| 38 |
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
| 39 |
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|
|
|
|
| 33 |
|
| 34 |
###NEW
|
| 35 |
# Retrieve the LangSmith API Key from environment variable
|
| 36 |
+
os.environ["LANGCHAIN_API_KEY"] = st.secrets["LANGCHAIN_API_KEY"]
|
| 37 |
+
# LANGCHAIN_API_KEY = os.getenv("LANGCHAIN_API_KEY")
|
| 38 |
os.environ["LANGCHAIN_API_KEY"] = str(os.getenv("LANGCHAIN_API_KEY"))
|
| 39 |
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
| 40 |
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|