georad commited on
Commit
4458d2c
·
verified ·
1 Parent(s): 877f465

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import streamlit as st
3
  # --- SHARED ON ALL PAGES ---
4
  #st.logo(image=":material/medical_information:")
5
  #st.logo("images/medical_information_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.png")
6
- st.sidebar.markdown("Pages")
7
 
8
  # --- PAGE SETUP ---
9
  home_page = st.Page(
@@ -42,9 +42,16 @@ about_page = st.Page(
42
  #page = PAGES[selection]
43
 
44
  # --- NAVIGATION SETUP ---
45
- pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
46
  #pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
 
47
 
48
  st.sidebar.text("Project by JA-RAD")
 
 
 
 
 
49
 
50
- pg.run()
 
 
3
  # --- SHARED ON ALL PAGES ---
4
  #st.logo(image=":material/medical_information:")
5
  #st.logo("images/medical_information_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.png")
6
+ st.sidebar.markdown("PagesZZZ")
7
 
8
  # --- PAGE SETUP ---
9
  home_page = st.Page(
 
42
  #page = PAGES[selection]
43
 
44
  # --- NAVIGATION SETUP ---
45
+ pg = st.navigation(pages=[st.sidebar.markdown("Pages"), home_page, type_text_page, upload_file_page,) # about_page]) # WITHOUT SECTIONS
46
  #pg = st.navigation({"Home": [home_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")
50
+ about_page = st.Page(
51
+ page="pages/about.py",
52
+ title="About the app",
53
+ icon=":material/info:",
54
+ default=False)
55
 
56
+ pg_1 = st.navigation(pages=[about_page])
57
+ pg_1.run()