Spaces:
Sleeping
Sleeping
Commit
·
a8ab3cc
1
Parent(s):
747c88e
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ load_button = st.sidebar.button("Load data to Pinecone", key="load_button")
|
|
| 24 |
# If the above button is clicked, pushing the dat to Pinecone
|
| 25 |
if load_button:
|
| 26 |
# Proceed only if API keys are provided
|
| 27 |
-
if st.session_state['HuggingFace_API_Key'] != "" and st.session_state['
|
| 28 |
# Fetch data from site
|
| 29 |
site_data = get_website_data(constants.WEBSITE_URL)
|
| 30 |
st.write("Data pull done...")
|
|
|
|
| 24 |
# If the above button is clicked, pushing the dat to Pinecone
|
| 25 |
if load_button:
|
| 26 |
# Proceed only if API keys are provided
|
| 27 |
+
if st.session_state['HuggingFace_API_Key'] != "" and st.session_state['Pinecone_API_Key'] != "":
|
| 28 |
# Fetch data from site
|
| 29 |
site_data = get_website_data(constants.WEBSITE_URL)
|
| 30 |
st.write("Data pull done...")
|