Spaces:
Running
Running
File size: 1,237 Bytes
12498c8 9dd22b3 f0c9548 4ab0551 9dd22b3 12498c8 ab36657 12498c8 2de1396 12498c8 2de1396 12498c8 ad52356 3ce0868 12498c8 2de1396 12498c8 cdf5411 12498c8 5f64b53 12498c8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
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()
|