Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,14 +101,15 @@ st.title("Chatbot Guide")
|
|
101 |
|
102 |
# Define the options in the dropdown menu
|
103 |
app_options = [
|
104 |
-
"1)
|
105 |
-
"2)
|
106 |
-
"3)
|
107 |
-
"4)
|
|
|
108 |
]
|
109 |
|
110 |
# Sidebar dropdown for selecting the application
|
111 |
-
selected_app = st.sidebar.selectbox("Select Step (1-
|
112 |
|
113 |
# Clear session state when switching apps
|
114 |
if 'last_selected_app' in st.session_state:
|
@@ -124,7 +125,13 @@ if 'error' not in st.session_state:
|
|
124 |
if 'success' not in st.session_state:
|
125 |
st.session_state.success = None
|
126 |
|
127 |
-
if selected_app == "1)
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
if st.session_state.error != "":
|
129 |
st.error(st.session_state.error)
|
130 |
|
@@ -200,7 +207,7 @@ if selected_app == "1) Create CSVs":
|
|
200 |
st.session_state.error = "Please upload at least 1 PDF"
|
201 |
st.rerun()
|
202 |
|
203 |
-
if selected_app == "
|
204 |
if st.session_state.error != "":
|
205 |
st.error(st.session_state.error)
|
206 |
|
@@ -252,10 +259,10 @@ if selected_app == "2) Merge CSVs":
|
|
252 |
st.session_state.error = "Please upload at least 2 CSVs to merge"
|
253 |
st.rerun()
|
254 |
|
255 |
-
if selected_app == "
|
256 |
st.markdown("Go to this [google colab link](https://colab.research.google.com/drive/1eCpk9HUoCKZb--tiNyQSHFW2ojoaA35m) to get started")
|
257 |
|
258 |
-
if selected_app == "
|
259 |
if st.session_state.error != "":
|
260 |
st.error(st.session_state.error)
|
261 |
|
|
|
101 |
|
102 |
# Define the options in the dropdown menu
|
103 |
app_options = [
|
104 |
+
"1) Scrape PDFs",
|
105 |
+
"2) Create CSVs",
|
106 |
+
"3) Merge CSVs",
|
107 |
+
"4) Upload Datasets",
|
108 |
+
"5) Create Chatbot"
|
109 |
]
|
110 |
|
111 |
# Sidebar dropdown for selecting the application
|
112 |
+
selected_app = st.sidebar.selectbox("Select Step (1-5)", app_options)
|
113 |
|
114 |
# Clear session state when switching apps
|
115 |
if 'last_selected_app' in st.session_state:
|
|
|
125 |
if 'success' not in st.session_state:
|
126 |
st.session_state.success = None
|
127 |
|
128 |
+
if selected_app == "1) Scrape PDFs":
|
129 |
+
st.write("1. Go to your organizations webpage")
|
130 |
+
st.divider()
|
131 |
+
|
132 |
+
st.write("2. Choose an section in the webpage")
|
133 |
+
|
134 |
+
if selected_app == "2) Create CSVs":
|
135 |
if st.session_state.error != "":
|
136 |
st.error(st.session_state.error)
|
137 |
|
|
|
207 |
st.session_state.error = "Please upload at least 1 PDF"
|
208 |
st.rerun()
|
209 |
|
210 |
+
if selected_app == "3) Merge CSVs":
|
211 |
if st.session_state.error != "":
|
212 |
st.error(st.session_state.error)
|
213 |
|
|
|
259 |
st.session_state.error = "Please upload at least 2 CSVs to merge"
|
260 |
st.rerun()
|
261 |
|
262 |
+
if selected_app == "4) Upload Datasets":
|
263 |
st.markdown("Go to this [google colab link](https://colab.research.google.com/drive/1eCpk9HUoCKZb--tiNyQSHFW2ojoaA35m) to get started")
|
264 |
|
265 |
+
if selected_app == "5) Create Chatbot":
|
266 |
if st.session_state.error != "":
|
267 |
st.error(st.session_state.error)
|
268 |
|