ProfessorLeVesseur commited on
Commit
3b0cc7f
·
verified ·
1 Parent(s): 3d644a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -26,10 +26,11 @@ from pinecone import Pinecone
26
  # PINECONE_API_KEY = "555c0e70-331d-4b43-aac7-5b3aac5078d6"
27
  pc = Pinecone(api_key=PINECONE_API_KEY)
28
 
29
- os.environ ["LANGCHAIN_API_KEY"] = str(os.getenv("LANGCHAIN_API_KEY"))
30
- os.environ ["LANGCHAIN_TRACING_V2"] = "true"
31
- os.environ ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
32
- os.environ ["LANGCHAIN_PROJECT"] = "Inkqa"
 
33
 
34
  client = Client() #langsmith client
35
 
 
26
  # PINECONE_API_KEY = "555c0e70-331d-4b43-aac7-5b3aac5078d6"
27
  pc = Pinecone(api_key=PINECONE_API_KEY)
28
 
29
+ LANGCHAIN_API_KEY = st.secrets["LANGCHAIN_API_KEY"]
30
+ LANGCHAIN_API_KEY = st.secrets["langchain"]["api_key"]
31
+ LANGCHAIN_TRACING_V2 = "true"
32
+ LANGCHAIN_ENDPOINT = "https://api.smith.langchain.com"
33
+ LANGCHAIN_PROJECT = "Inkqa"
34
 
35
  client = Client() #langsmith client
36