Spaces:
Runtime error
Runtime error
import streamlit as st | |
from about import about_ask2democracy | |
from hallazgos import hallazgos_comision_verdad_2022 | |
from reformas import reforma_salud_febrero_2023 | |
from pinecode_quieries import PinecodeProposalQueries | |
from config import Config | |
# Define the sidebar | |
api_key = st.sidebar.text_input("OpenAI API Key", type="password") | |
# Define the navigation between pages | |
page_options = { | |
"About": about_ask2democracy, | |
"Propuesta: Reforma a la salud febrero de 2023": reforma_salud_febrero_2023, | |
"Hallazgos de la comisión de la verdad 2022": hallazgos_comision_verdad_2022 | |
} | |
# Define the page selector | |
selected_page = st.sidebar.radio("Selecciona la página que deseas explorar:", list(page_options.keys())) | |
# Render the selected page | |
page_options[selected_page]() | |