Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,11 @@ if api_key_langchain:
|
|
21 |
else:
|
22 |
st.write("Please enter your LangChain API key.")
|
23 |
|
|
|
|
|
|
|
|
|
|
|
24 |
# Prompt the user to enter their Groq API key
|
25 |
api_key_Groq = st.text_input("Enter your Groq_API_KEY", type="password")
|
26 |
|
@@ -30,9 +35,9 @@ if api_key_Groq:
|
|
30 |
st.write("Groq API Key is set.")
|
31 |
else:
|
32 |
st.write("Please enter your Groq API key.")
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
|
37 |
GROQ_API_KEY = api_key_Groq
|
38 |
from langchain_groq import ChatGroq
|
|
|
21 |
else:
|
22 |
st.write("Please enter your LangChain API key.")
|
23 |
|
24 |
+
# Initialize LangChain client (hypothetical example)
|
25 |
+
#lc_client = Client(api_key=LANGCHAIN_API_KEY)
|
26 |
+
lc = LangChain(api_key=api_key_langchain)
|
27 |
+
|
28 |
+
|
29 |
# Prompt the user to enter their Groq API key
|
30 |
api_key_Groq = st.text_input("Enter your Groq_API_KEY", type="password")
|
31 |
|
|
|
35 |
st.write("Groq API Key is set.")
|
36 |
else:
|
37 |
st.write("Please enter your Groq API key.")
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
|
42 |
GROQ_API_KEY = api_key_Groq
|
43 |
from langchain_groq import ChatGroq
|