Flamengo / app.py
drguilhermeapolinario's picture
Update app.py
3ce0868 verified
import streamlit as st
import toml
import os
st.set_page_config(layout="wide", page_icon="🏥")
# Definir o caminho para o config.toml na pasta .streamlit
config_path = os.path.join(".streamlit", "config.toml")
# Carregar as configurações do config.toml
config = toml.load(config_path)
# --- 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/rag_med.py",
title="Encaminhamento Médico",
icon=":material/edit_road:",
)
project_3_page = st.Page(
page="views/newchatgroq.py",
title="ChatBot UBS Flamengo",
icon=":material/smart_toy:",
)
project_4_page = st.Page(
page="views/pdf_chat.py",
title="Utilidades",
icon=":material/query_stats:",
)
project_5_page = st.Page(
page="views/exame.py",
title="Extração de resultados",
icon=":material/edit_road:",
)
# --- NAVIGATION SETUP [WITHOUT SECTIONS] ---
pg = st.navigation(pages=[about_page, project_1_page, project_2_page, project_3_page, project_4_page, project_5_page])
pg.run()