ProfessorLeVesseur commited on
Commit
50a40d5
·
verified ·
1 Parent(s): 1bd3d09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -20
app.py CHANGED
@@ -31,29 +31,16 @@ PINECONE_API_KEY = os.getenv("PINECONE_API_KEY")
31
  # from pinecone import Pinecone
32
  pc = Pinecone(api_key=PINECONE_API_KEY)
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"
41
  os.environ["LANGCHAIN_PROJECT"] = "Inkqa"
42
-
43
- # Initialize the Langsmith client/services with API key
44
- client = Client(api_key=LANGCHAIN_API_KEY)
45
- # client = Client()
46
-
47
- # # Fetch LangSmith API key from Streamlit secrets
48
- # os.environ["LANGCHAIN_API_KEY"] = st.secrets["LANGCHAIN_API_KEY"]
49
- # # os.environ["LANGCHAIN_API_KEY"] = "ls__1819fb2979e44f0a9e410688d81c6390"
50
- # os.environ["LANGCHAIN_TRACING_V2"] = "true"
51
- # os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
52
- # os.environ["LANGCHAIN_PROJECT"] = "Inkqa"
53
- # # Retrieve the LangSmith API Key from environment variable
54
- # LANGCHAIN_API_KEY = os.getenv("LANGCHAIN_API_KEY")
55
- # # Initialize LangSmith Service
56
- # client = Client(api_key=LANGCHAIN_API_KEY) #langsmith client
57
 
58
  #------------------------------------------------------------------------
59
  # Initialize
 
31
  # from pinecone import Pinecone
32
  pc = Pinecone(api_key=PINECONE_API_KEY)
33
 
34
+ # Fetch LangSmith API key from Streamlit secrets
35
+ # os.environ["LANGCHAIN_API_KEY"] = st.secrets["LANGCHAIN_API_KEY"]
36
+ os.environ["LANGCHAIN_API_KEY"] = "ls__1819fb2979e44f0a9e410688d81c6390"
 
 
37
  os.environ["LANGCHAIN_TRACING_V2"] = "true"
38
  os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
39
  os.environ["LANGCHAIN_PROJECT"] = "Inkqa"
40
+ # Retrieve the LangSmith API Key from environment variable
41
+ LANGCHAIN_API_KEY = os.getenv("LANGCHAIN_API_KEY")
42
+ # Initialize LangSmith Service
43
+ client = Client(api_key=LANGCHAIN_API_KEY) #langsmith client
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  #------------------------------------------------------------------------
46
  # Initialize