Spaces:
Runtime error
Runtime error
Commit
Β·
229bcf3
1
Parent(s):
24b629d
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,11 +3,16 @@ from utils import *
|
|
| 3 |
import constants
|
| 4 |
|
| 5 |
# Creating Session State Variable
|
|
|
|
|
|
|
| 6 |
if 'HuggingFace_API_Key' not in st.session_state:
|
| 7 |
st.session_state['HuggingFace_API_Key'] =''
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
if 'Pinecone_API_Key' not in st.session_state:
|
| 9 |
-
st.session_state['Pinecone_API_Key'] ='
|
| 10 |
-
|
| 11 |
|
| 12 |
#
|
| 13 |
st.title('π€ AI Assistance For Website')
|
|
@@ -15,7 +20,7 @@ st.title('π€ AI Assistance For Website')
|
|
| 15 |
#********SIDE BAR Funtionality started*******
|
| 16 |
|
| 17 |
# Sidebar to capture the API keys
|
| 18 |
-
st.sidebar.title("
|
| 19 |
st.session_state['Website_URL']= st.sidebar.text_input("Input the Website URL you want to Query against?")
|
| 20 |
st.session_state['HuggingFace_API_Key']= st.sidebar.text_input("What's your HuggingFace API key?",type="password")
|
| 21 |
st.session_state['Pinecone_Index']= st.sidebar.text_input("What's your Pinecone Index?")
|
|
|
|
| 3 |
import constants
|
| 4 |
|
| 5 |
# Creating Session State Variable
|
| 6 |
+
if 'Website_URL' not in st.session_state:
|
| 7 |
+
st.session_state['Website_URL'] =''
|
| 8 |
if 'HuggingFace_API_Key' not in st.session_state:
|
| 9 |
st.session_state['HuggingFace_API_Key'] =''
|
| 10 |
+
if 'Pinecone_Index' not in st.session_state:
|
| 11 |
+
st.session_state['Pinecone_Index'] =''
|
| 12 |
+
if 'Pinecone_EBV' not in st.session_state:
|
| 13 |
+
st.session_state['Pinecone_ENV'] =''
|
| 14 |
if 'Pinecone_API_Key' not in st.session_state:
|
| 15 |
+
st.session_state['Pinecone_API_Key'] ='
|
|
|
|
| 16 |
|
| 17 |
#
|
| 18 |
st.title('π€ AI Assistance For Website')
|
|
|
|
| 20 |
#********SIDE BAR Funtionality started*******
|
| 21 |
|
| 22 |
# Sidebar to capture the API keys
|
| 23 |
+
st.sidebar.title("ποΈ")
|
| 24 |
st.session_state['Website_URL']= st.sidebar.text_input("Input the Website URL you want to Query against?")
|
| 25 |
st.session_state['HuggingFace_API_Key']= st.sidebar.text_input("What's your HuggingFace API key?",type="password")
|
| 26 |
st.session_state['Pinecone_Index']= st.sidebar.text_input("What's your Pinecone Index?")
|