Thalapathy Vijay commited on
Commit Β·
e2965c2
1
Parent(s): a0cdb9e
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,9 @@ 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 |
#
|
|
@@ -16,8 +16,8 @@ st.title('π€ AI Assistance For Website')
|
|
| 16 |
|
| 17 |
# Sidebar to capture the API keys
|
| 18 |
st.sidebar.title("πποΈ")
|
| 19 |
-
st.session_state['HuggingFace_API_Key']= st.sidebar.text_input("What's your HuggingFace API key?",type="password")
|
| 20 |
-
st.session_state['Pinecone_API_Key']= st.sidebar.text_input("What's your Pinecone API key?",type="password")
|
| 21 |
|
| 22 |
load_button = st.sidebar.button("Load data to Pinecone", key="load_button")
|
| 23 |
|
|
|
|
| 4 |
|
| 5 |
# Creating Session State Variable
|
| 6 |
if 'HuggingFace_API_Key' not in st.session_state:
|
| 7 |
+
st.session_state['HuggingFace_API_Key'] ='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'
|
| 8 |
if 'Pinecone_API_Key' not in st.session_state:
|
| 9 |
+
st.session_state['Pinecone_API_Key'] ='e230380c-daab-4529-8e5a-4fa84e6788d9'
|
| 10 |
|
| 11 |
|
| 12 |
#
|
|
|
|
| 16 |
|
| 17 |
# Sidebar to capture the API keys
|
| 18 |
st.sidebar.title("πποΈ")
|
| 19 |
+
#st.session_state['HuggingFace_API_Key']= st.sidebar.text_input("What's your HuggingFace API key?",type="password")
|
| 20 |
+
#st.session_state['Pinecone_API_Key']= st.sidebar.text_input("What's your Pinecone API key?",type="password")
|
| 21 |
|
| 22 |
load_button = st.sidebar.button("Load data to Pinecone", key="load_button")
|
| 23 |
|