georad commited on
Commit
04c7b8c
·
verified ·
1 Parent(s): beb6cd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -51,6 +51,9 @@ custom_css = f"""
51
  </style>
52
  """
53
 
 
 
 
54
  # Inject CSS as early as possible in your app
55
  st.markdown(custom_css, unsafe_allow_html=True)
56
 
@@ -72,6 +75,11 @@ type_text_page = st.Page(
72
  default=True,)
73
 
74
  # --- NAVIGATION SETUP ---
75
- pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
76
- #pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
77
- pg.run()
 
 
 
 
 
 
51
  </style>
52
  """
53
 
54
+
55
+
56
+
57
  # Inject CSS as early as possible in your app
58
  st.markdown(custom_css, unsafe_allow_html=True)
59
 
 
75
  default=True,)
76
 
77
  # --- NAVIGATION SETUP ---
78
+ #pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
79
+ ##pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
80
+ #pg.run()
81
+
82
+
83
+ if __name__ == "__main__":
84
+ pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
85
+ pg.run()