ProfessorLeVesseur commited on
Commit
d6d4fca
·
verified ·
1 Parent(s): e6f2141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -31,20 +31,9 @@ PINECONE_API_KEY = os.getenv("PINECONE_API_KEY")
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
- #NEW
46
  # Fetch LangSmith API key from Streamlit secrets
47
- os.environ["LANGCHAIN_API_KEY"] = st.secrets["LANGCHAIN_API_KEY"]
 
48
  os.environ["LANGCHAIN_TRACING_V2"] = "true"
49
  os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
50
  os.environ["LANGCHAIN_PROJECT"] = "Inkqa"
@@ -53,6 +42,17 @@ LANGCHAIN_API_KEY = os.getenv("LANGCHAIN_API_KEY")
53
  # Initialize LangSmith Service
54
  client = Client(api_key=LANGCHAIN_API_KEY) #langsmith client
55
 
 
 
 
 
 
 
 
 
 
 
 
56
  #------------------------------------------------------------------------
57
  # Initialize
58
  #------------------------------------------------------------------------
 
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"
 
42
  # Initialize LangSmith Service
43
  client = Client(api_key=LANGCHAIN_API_KEY) #langsmith client
44
 
45
+ # #NEW but "Restarting" never stops
46
+ # # Fetch LangSmith API key from Streamlit secrets
47
+ # os.environ["LANGCHAIN_API_KEY"] = st.secrets["LANGCHAIN_API_KEY"]
48
+ # os.environ["LANGCHAIN_TRACING_V2"] = "true"
49
+ # os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
50
+ # os.environ["LANGCHAIN_PROJECT"] = "Inkqa"
51
+ # # Retrieve the LangSmith API Key from environment variable
52
+ # LANGCHAIN_API_KEY = os.getenv("LANGCHAIN_API_KEY")
53
+ # # Initialize LangSmith Service
54
+ # client = Client(api_key=LANGCHAIN_API_KEY) #langsmith client
55
+
56
  #------------------------------------------------------------------------
57
  # Initialize
58
  #------------------------------------------------------------------------