Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,17 @@ import bs4
|
|
10 |
import torch
|
11 |
import getpass
|
12 |
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# Initialize LangChain client (hypothetical example)
|
17 |
lc_client = Client(api_key=LANGCHAIN_API_KEY)
|
|
|
10 |
import torch
|
11 |
import getpass
|
12 |
|
13 |
+
|
14 |
+
# Prompt the user to enter their API key
|
15 |
+
api_key = st.text_input("Enter your LANGCHAIN_API_KEY", type="password")
|
16 |
+
|
17 |
+
# Check if the API key has been provided
|
18 |
+
if api_key:
|
19 |
+
# Use the API key in your app
|
20 |
+
st.write("API Key is set.")
|
21 |
+
else:
|
22 |
+
st.write("Please enter your API key.")
|
23 |
+
|
24 |
|
25 |
# Initialize LangChain client (hypothetical example)
|
26 |
lc_client = Client(api_key=LANGCHAIN_API_KEY)
|