AreesaAshfaq commited on
Commit
3d0b71c
·
verified ·
1 Parent(s): f7694d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -10,8 +10,17 @@ import bs4
10
  import torch
11
  import getpass
12
 
13
- # Prompt the user to enter the LangChain API key
14
- api_key = getpass.getpass(prompt="Enter your LANGCHAIN_API_KEY: ")
 
 
 
 
 
 
 
 
 
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)