Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from streamlit_navigation_bar import st_navbar
|
3 |
-
|
|
|
4 |
# --- SHARED ON ALL PAGES ---
|
5 |
st.logo(image="images/menu_book_60dp_75FBFD.png")
|
6 |
st.sidebar.title("SBS V2.0 mapper")
|
@@ -10,14 +11,14 @@ st.sidebar.text("Demo by JA-RAD")
|
|
10 |
# --- PAGE SETUP ---
|
11 |
type_text_page = st.Page(
|
12 |
page="pages/type_text.py",
|
13 |
-
title="
|
14 |
icon=":material/keyboard:",
|
15 |
default=True,)
|
16 |
|
17 |
# --- NAVIGATION SETUP ---
|
18 |
|
19 |
-
pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
|
20 |
#pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
|
21 |
-
|
22 |
-
|
23 |
-
#
|
|
|
1 |
import streamlit as st
|
2 |
from streamlit_navigation_bar import st_navbar
|
3 |
+
page = st_navbar([pages="SBS V2.0 mapper"],selected="SBS V2.0 mapper" key="app_page_navbar")
|
4 |
+
st.write(page)
|
5 |
# --- SHARED ON ALL PAGES ---
|
6 |
st.logo(image="images/menu_book_60dp_75FBFD.png")
|
7 |
st.sidebar.title("SBS V2.0 mapper")
|
|
|
11 |
# --- PAGE SETUP ---
|
12 |
type_text_page = st.Page(
|
13 |
page="pages/type_text.py",
|
14 |
+
title="SBS V2.0 mapper",
|
15 |
icon=":material/keyboard:",
|
16 |
default=True,)
|
17 |
|
18 |
# --- NAVIGATION SETUP ---
|
19 |
|
20 |
+
#pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
|
21 |
#pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
|
22 |
+
#pg.run()
|
23 |
+
#page = st_navbar(["pages/type_text.py"], key="app_page_navbar")
|
24 |
+
#st.write(page)
|