Spaces:
Sleeping
Sleeping
Update app.py
Browse files100 unmodified lines1011021031041051061071081091101111121131149 unmodified lines12412512612712812913069 unmodified lines20020120220320420520645 unmodified lines252253254255256257258259260261100 unmodified lines# Define the options in the dropdown menuapp_options = ["1) Create CSVs","2) Merge CSVs","3) Upload Datasets","4) Create Chatbot"]# Sidebar dropdown for selecting the applicationselected_app = st.sidebar.selectbox("Select Step (1-4)", 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 = Noneif selected_app == "1) Create CSVs":if st.session_state.error != "":st.error(st.session_state.error)69 unmodified linesst.session_state.error = "Please upload at least 1 PDF"st.rerun()if selected_app == "2) Merge CSVs":if st.session_state.error != "":st.error(st.session_state.error)45 unmodified linesst.session_state.error = "Please upload at least 2 CSVs to merge"st.rerun()if selected_app == "3) 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 st.session_state.error != "":st.error(st.session_state.error)100 unmodified lines1011021031041051061071081091101111121131141159 unmodified lines12512612712812913013113213313413513613769 unmodified lines20720820921021121221345 unmodified lines259260261262263264265266267268100 unmodified lines# Define the options in the dropdown menuapp_options = ["1) Scrape PDFs","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-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 = Noneif 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 linesst.session_state.error = "Please upload at least 1 PDF"st.rerun()if selected_app == "3) Merge CSVs":if st.session_state.error != "":st.error(st.session_state.error)45 unmodified linesst.session_state.error = "Please upload at least 2 CSVs to merge"st.rerun()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 == "5) Create Chatbot":if st.session_state.error != "":st.error(st.session_state.error)
app.py+16-9