Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,9 @@ import streamlit as st
|
|
6 |
st.title("📘SBS mapper")
|
7 |
|
8 |
# --- PAGE SETUP ---
|
9 |
-
|
10 |
-
page="pages/
|
11 |
-
title="
|
12 |
icon=":material/home:",
|
13 |
default=True,)
|
14 |
|
@@ -31,19 +31,19 @@ about_page = st.Page(
|
|
31 |
default=False)
|
32 |
|
33 |
#PAGES = {
|
34 |
-
# "
|
35 |
# "DEMO type_text": "pages/type_text.py",
|
36 |
# "DEMO upload file (not yet active)": "pages/upload_file.py",
|
37 |
# "About": "pages/about.py",
|
38 |
#}
|
39 |
|
40 |
#selection = st.sidebar.radio("Pages", list(PAGES.keys()))
|
41 |
-
#selection = st.sidebar.radio("Pages", [
|
42 |
#page = PAGES[selection]
|
43 |
|
44 |
# --- NAVIGATION SETUP ---
|
45 |
-
pg = st.navigation(pages=[
|
46 |
-
#pg = st.navigation({"
|
47 |
pg.run()
|
48 |
|
49 |
st.sidebar.text("Project by JA-RAD")
|
|
|
6 |
st.title("📘SBS mapper")
|
7 |
|
8 |
# --- PAGE SETUP ---
|
9 |
+
start_page = st.Page(
|
10 |
+
page="pages/chapter_index.py",
|
11 |
+
title="Chapter Index",
|
12 |
icon=":material/home:",
|
13 |
default=True,)
|
14 |
|
|
|
31 |
default=False)
|
32 |
|
33 |
#PAGES = {
|
34 |
+
# "Chapter Index": "pages/chapter_index.py" ,
|
35 |
# "DEMO type_text": "pages/type_text.py",
|
36 |
# "DEMO upload file (not yet active)": "pages/upload_file.py",
|
37 |
# "About": "pages/about.py",
|
38 |
#}
|
39 |
|
40 |
#selection = st.sidebar.radio("Pages", list(PAGES.keys()))
|
41 |
+
#selection = st.sidebar.radio("Pages", [start_page, type_text_page, upload_file_page, about_page])
|
42 |
#page = PAGES[selection]
|
43 |
|
44 |
# --- NAVIGATION SETUP ---
|
45 |
+
pg = st.navigation(pages=[start_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
|
46 |
+
#pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
|
47 |
pg.run()
|
48 |
|
49 |
st.sidebar.text("Project by JA-RAD")
|