Spaces:
Running
Running
import streamlit as st | |
# --- PAGE SETUP --- | |
about_page = st.Page( | |
page="views/rci.py", | |
title="Análise de microárea", | |
icon=":material/query_stats:", | |
default=True, | |
) | |
project_1_page = st.Page( | |
page="views/maps.py", | |
title="Mapas da área", | |
icon=":material/explore:", | |
) | |
project_2_page = st.Page( | |
page="views/mesames.py", | |
title="Crescimento populacional - UBS Flamengo", | |
icon=":material/edit_road:", | |
) | |
project_3_page = st.Page( | |
page="views/rag_med.py", | |
title="Encaminhamento Médico", | |
icon=":material/edit_road:", | |
) | |
project_4_page = st.Page( | |
page="views/newchatgroq.py", | |
title="ChatBot UBS Flamengo", | |
icon=":material/smart_toy:", | |
) | |
project_5_page = st.Page( | |
page="views/pdf_chat.py", | |
title="Converse com seu pdf", | |
) | |
project_6_page = st.Page( | |
page="views/exame.py", | |
title="Extração de resultados", | |
icon=":material/edit_road:", | |
) | |
project_7_page = st.Page( | |
page="views/cad_cid.py", | |
title="Atualização de cadastro - UBS Flamengo", | |
icon=":material/edit_road:", | |
) | |
# --- NAVIGATION SETUP [WITHOUT SECTIONS] --- | |
# pg = st.navigation(pages=[about_page, project_1_page, project_2_page]) | |
# --- NAVIGATION SETUP [WITH SECTIONS] --- | |
pg = st.navigation( | |
{ | |
"Relatórios e mapas": [ | |
about_page, | |
project_1_page, | |
project_2_page, | |
], | |
"Apoio": [ | |
project_4_page, | |
project_3_page, | |
project_5_page, | |
project_6_page, | |
project_7_page, | |
], | |
} | |
) | |
# --- SHARED ON ALL PAGES --- | |
st.set_page_config(layout="wide") | |
#st.logo("src/images/logo.png") | |
st.sidebar.markdown("###### :blue-background[Dr Guilherme Apolinário]") | |
# --- RUN NAVIGATION --- | |
pg.run() | |