Spaces:
Running
Running
drguilhermeapolinario
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,73 +1,73 @@
|
|
1 |
-
import streamlit as st
|
2 |
-
|
3 |
-
# --- PAGE SETUP ---
|
4 |
-
about_page = st.Page(
|
5 |
-
page="views/rci.py",
|
6 |
-
title="Análise de microárea",
|
7 |
-
icon=":material/query_stats:",
|
8 |
-
default=True,
|
9 |
-
)
|
10 |
-
project_1_page = st.Page(
|
11 |
-
page="views/maps.py",
|
12 |
-
title="Mapas da área",
|
13 |
-
icon=":material/explore:",
|
14 |
-
)
|
15 |
-
project_2_page = st.Page(
|
16 |
-
page="views/mesames.py",
|
17 |
-
title="Crescimento populacional - UBS Flamengo",
|
18 |
-
icon=":material/edit_road:",
|
19 |
-
)
|
20 |
-
project_3_page = st.Page(
|
21 |
-
page="views/rag_med.py",
|
22 |
-
title="Enciclopédia médica",
|
23 |
-
icon=":material/edit_road:",
|
24 |
-
)
|
25 |
-
project_4_page = st.Page(
|
26 |
-
page="views/newchatgroq.py",
|
27 |
-
title="ChatBot UBS Flamengo",
|
28 |
-
icon=":material/smart_toy:",
|
29 |
-
)
|
30 |
-
project_5_page = st.Page(
|
31 |
-
page="views/pdf_chat.py",
|
32 |
-
title="Converse com seu pdf",
|
33 |
-
)
|
34 |
-
project_6_page = st.Page(
|
35 |
-
page="views/exame.py",
|
36 |
-
title="Extração de resultados",
|
37 |
-
icon=":material/edit_road:",
|
38 |
-
)
|
39 |
-
project_7_page = st.Page(
|
40 |
-
page="views/cad_cid.py",
|
41 |
-
title="Atualização de cadastro - UBS Flamengo",
|
42 |
-
icon=":material/edit_road:",
|
43 |
-
)
|
44 |
-
|
45 |
-
# --- NAVIGATION SETUP [WITHOUT SECTIONS] ---
|
46 |
-
# pg = st.navigation(pages=[about_page, project_1_page, project_2_page])
|
47 |
-
|
48 |
-
|
49 |
-
# --- NAVIGATION SETUP [WITH SECTIONS] ---
|
50 |
-
pg = st.navigation(
|
51 |
-
{
|
52 |
-
"Relatórios e mapas": [
|
53 |
-
about_page,
|
54 |
-
project_1_page,
|
55 |
-
project_2_page,
|
56 |
-
],
|
57 |
-
"Apoio": [
|
58 |
-
project_4_page,
|
59 |
-
project_3_page,
|
60 |
-
project_5_page,
|
61 |
-
project_6_page,
|
62 |
-
project_7_page,
|
63 |
-
],
|
64 |
-
}
|
65 |
-
)
|
66 |
-
|
67 |
-
# --- SHARED ON ALL PAGES ---
|
68 |
-
st.set_page_config(layout="wide")
|
69 |
-
st.logo("src/images/logo.png")
|
70 |
-
st.sidebar.markdown("###### :blue-background[Dr Guilherme Apolinário]")
|
71 |
-
|
72 |
-
# --- RUN NAVIGATION ---
|
73 |
-
pg.run()
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# --- PAGE SETUP ---
|
4 |
+
about_page = st.Page(
|
5 |
+
page="views/rci.py",
|
6 |
+
title="Análise de microárea",
|
7 |
+
icon=":material/query_stats:",
|
8 |
+
default=True,
|
9 |
+
)
|
10 |
+
project_1_page = st.Page(
|
11 |
+
page="views/maps.py",
|
12 |
+
title="Mapas da área",
|
13 |
+
icon=":material/explore:",
|
14 |
+
)
|
15 |
+
project_2_page = st.Page(
|
16 |
+
page="views/mesames.py",
|
17 |
+
title="Crescimento populacional - UBS Flamengo",
|
18 |
+
icon=":material/edit_road:",
|
19 |
+
)
|
20 |
+
project_3_page = st.Page(
|
21 |
+
page="views/rag_med.py",
|
22 |
+
title="Enciclopédia médica",
|
23 |
+
icon=":material/edit_road:",
|
24 |
+
)
|
25 |
+
project_4_page = st.Page(
|
26 |
+
page="views/newchatgroq.py",
|
27 |
+
title="ChatBot UBS Flamengo",
|
28 |
+
icon=":material/smart_toy:",
|
29 |
+
)
|
30 |
+
project_5_page = st.Page(
|
31 |
+
page="views/pdf_chat.py",
|
32 |
+
title="Converse com seu pdf",
|
33 |
+
)
|
34 |
+
project_6_page = st.Page(
|
35 |
+
page="views/exame.py",
|
36 |
+
title="Extração de resultados",
|
37 |
+
icon=":material/edit_road:",
|
38 |
+
)
|
39 |
+
project_7_page = st.Page(
|
40 |
+
page="views/cad_cid.py",
|
41 |
+
title="Atualização de cadastro - UBS Flamengo",
|
42 |
+
icon=":material/edit_road:",
|
43 |
+
)
|
44 |
+
|
45 |
+
# --- NAVIGATION SETUP [WITHOUT SECTIONS] ---
|
46 |
+
# pg = st.navigation(pages=[about_page, project_1_page, project_2_page])
|
47 |
+
|
48 |
+
|
49 |
+
# --- NAVIGATION SETUP [WITH SECTIONS] ---
|
50 |
+
pg = st.navigation(
|
51 |
+
{
|
52 |
+
"Relatórios e mapas": [
|
53 |
+
about_page,
|
54 |
+
project_1_page,
|
55 |
+
project_2_page,
|
56 |
+
],
|
57 |
+
"Apoio": [
|
58 |
+
project_4_page,
|
59 |
+
project_3_page,
|
60 |
+
project_5_page,
|
61 |
+
project_6_page,
|
62 |
+
project_7_page,
|
63 |
+
],
|
64 |
+
}
|
65 |
+
)
|
66 |
+
|
67 |
+
# --- SHARED ON ALL PAGES ---
|
68 |
+
st.set_page_config(layout="wide")
|
69 |
+
#st.logo("src/images/logo.png")
|
70 |
+
st.sidebar.markdown("###### :blue-background[Dr Guilherme Apolinário]")
|
71 |
+
|
72 |
+
# --- RUN NAVIGATION ---
|
73 |
+
pg.run()
|