georad commited on
Commit
b3d5435
·
verified ·
1 Parent(s): dcf09ce

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -0
app.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
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.text("Project by SPG")
7
+
8
+
9
+ # --- PAGE SETUP ---
10
+ home_page = st.Page(
11
+ page="pages/home.py",
12
+ title="Home",
13
+ icon=":material/home:",
14
+ default=True,)
15
+
16
+ type_text_page = st.Page(
17
+ page="pages/type_text.py",
18
+ title="type text",
19
+ icon=":material/keyboard:",
20
+ default=False,)
21
+
22
+ upload_file_page = st.Page(
23
+ page="pages/upload_file.py",
24
+ title="upload file",
25
+ icon=":material/file_upload:",
26
+ default=False,)
27
+
28
+ about_page = st.Page(
29
+ page="pages/about.py",
30
+ title="About the app",
31
+ icon=":material/info:",
32
+ default=False)
33
+
34
+
35
+ # --- NAVIGATION SETUP ---
36
+ #pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
37
+ pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
38
+
39
+ pg.run()