Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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)
|