Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,9 @@ from langchain_text_splitters import RecursiveCharacterTextSplitter
|
|
| 9 |
import bs4
|
| 10 |
import torch
|
| 11 |
import getpass
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Prompt the user to enter their Langchain API key
|
| 14 |
api_key_langchain = st.text_input("Enter your LANGCHAIN_API_KEY", type="password")
|
|
@@ -18,7 +21,7 @@ api_key_Groq = st.text_input("Enter your Groq_API_KEY", type="password")
|
|
| 18 |
|
| 19 |
# Check if both API keys have been provided
|
| 20 |
if not api_key_langchain or not api_key_Groq:
|
| 21 |
-
st.write("Please enter both API keys.")
|
| 22 |
else:
|
| 23 |
st.write("Both API keys are set.")
|
| 24 |
|
|
|
|
| 9 |
import bs4
|
| 10 |
import torch
|
| 11 |
import getpass
|
| 12 |
+
|
| 13 |
+
# Streamlit UI
|
| 14 |
+
st.title("Blog Retrieval and Question Answering")
|
| 15 |
|
| 16 |
# Prompt the user to enter their Langchain API key
|
| 17 |
api_key_langchain = st.text_input("Enter your LANGCHAIN_API_KEY", type="password")
|
|
|
|
| 21 |
|
| 22 |
# Check if both API keys have been provided
|
| 23 |
if not api_key_langchain or not api_key_Groq:
|
| 24 |
+
st.write("Please enter both API keys if you want to access this APP.")
|
| 25 |
else:
|
| 26 |
st.write("Both API keys are set.")
|
| 27 |
|