AreesaAshfaq commited on
Commit
8483ca7
·
verified ·
1 Parent(s): 34fcb90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -8,7 +8,10 @@ from langchain_core.runnables import RunnablePassthrough
8
  from langchain_text_splitters import RecursiveCharacterTextSplitter
9
  import bs4
10
  import torch
11
- from langchain import Client
 
 
 
12
 
13
  # Initialize LangChain client (hypothetical example)
14
  lc_client = Client(api_key=LANGCHAIN_API_KEY)
 
8
  from langchain_text_splitters import RecursiveCharacterTextSplitter
9
  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)