georad commited on
Commit
b549aab
·
verified ·
1 Parent(s): c288eb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -18,7 +18,7 @@ type_text_page = st.Page(
18
  icon=":material/keyboard:",
19
  default=False,)
20
 
21
- demo_type_text_page = st.Page(
22
  page="pages/demo_type_text.py",
23
  title="DEMO for text entry",
24
  icon=":material/keyboard:",
@@ -36,18 +36,7 @@ about_page = st.Page(
36
  icon=":material/info:",
37
  default=False)
38
 
39
- #PAGES = {
40
- # "Chapter Index": "pages/chapter_index.py" ,
41
- # "DEMO type_text": "pages/type_text.py",
42
- # "DEMO upload file (not yet active)": "pages/upload_file.py",
43
- # "About": "pages/about.py",
44
- #}
45
-
46
- #selection = st.sidebar.radio("Pages", list(PAGES.keys()))
47
- #selection = st.sidebar.radio("Pages", [start_page, type_text_page, upload_file_page, about_page])
48
- #page = PAGES[selection]
49
-
50
  # --- NAVIGATION SETUP ---
51
  pg = st.navigation(pages=[type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
52
  #pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
53
- pg.run()
 
18
  icon=":material/keyboard:",
19
  default=False,)
20
 
21
+ chapter_and_type_text_page = st.Page(
22
  page="pages/demo_type_text.py",
23
  title="DEMO for text entry",
24
  icon=":material/keyboard:",
 
36
  icon=":material/info:",
37
  default=False)
38
 
 
 
 
 
 
 
 
 
 
 
 
39
  # --- NAVIGATION SETUP ---
40
  pg = st.navigation(pages=[type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
41
  #pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
42
+ pg.run()