Spaces:
Sleeping
Sleeping
Update app.py
Browse files100 unmodified lines1011021031041041051061071051061071081091101111111121131141159 unmodified lines12512612712712812913013113213313413513613769 unmodified lines20720820920321021121221345 unmodified lines259260261255262263264258265266267268100 unmodified lines
# Define the options in the dropdown menuapp_options = [ "1) Scrape PDFs", "1) Create CSVs", "2) Merge CSVs", "3) Upload Datasets", "4) Create Chatbot" "2) Create CSVs", "3) Merge CSVs", "4) Upload Datasets", "5) Create Chatbot"]
# Sidebar dropdown for selecting the applicationselected_app = st.sidebar.selectbox("Select Step (1-4)", app_options)selected_app = st.sidebar.selectbox("Select Step (1-5)", app_options)
# Clear session state when switching appsif 'last_selected_app' in st.session_state:9 unmodified linesif 'success' not in st.session_state: st.session_state.success = None
if selected_app == "1) Create CSVs": if selected_app == "1) Scrape PDFs": st.write("1. Go to your organizations webpage") st.divider() st.write("2. Choose an section in the webpage")
if selected_app == "2) Create CSVs": if st.session_state.error != "": st.error(st.session_state.error) 69 unmodified lines st.session_state.error = "Please upload at least 1 PDF" st.rerun()
if selected_app == "2) Merge CSVs":if selected_app == "3) Merge CSVs": if st.session_state.error != "": st.error(st.session_state.error) 45 unmodified lines st.session_state.error = "Please upload at least 2 CSVs to merge" st.rerun()
if selected_app == "3) Upload Datasets":if selected_app == "4) Upload Datasets": st.markdown("Go to this [google colab link](https://colab.research.google.com/drive/1eCpk9HUoCKZb--tiNyQSHFW2ojoaA35m) to get started")
if selected_app == "4) Create Chatbot":if selected_app == "5) Create Chatbot": if st.session_state.error != "": st.error(st.session_state.error)
app.py+16-9