Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# ==================== Buscador de Eventos de Notificaci贸n SIVIGILA - Colombia
|
| 2 |
|
| 3 |
|
| 4 |
# JAIRO ALEXANDER ERASO MD U Nacional de Colombia.
|
|
@@ -49,7 +49,6 @@ def get_gemini_model():
|
|
| 49 |
|
| 50 |
model = get_gemini_model()
|
| 51 |
|
| 52 |
-
# --- CARGA Y PROCESAMIENTO DE DATOS ---
|
| 53 |
@st.cache_data
|
| 54 |
def load_data():
|
| 55 |
"""Carga y procesa los archivos JSON, uni茅ndolos para un acceso r谩pido."""
|
|
@@ -179,7 +178,7 @@ def clear_search_state():
|
|
| 179 |
with st.form(key="search_form"):
|
| 180 |
query = st.text_input(
|
| 181 |
"Ingrese su b煤squeda:",
|
| 182 |
-
placeholder="Ej:
|
| 183 |
help="Puede buscar por nombre de la enfermedad, palabras clave, o c贸digos CIE."
|
| 184 |
)
|
| 185 |
submitted = st.form_submit_button("Buscar", type="primary")
|
|
@@ -241,9 +240,6 @@ if st.session_state.search_results is not None:
|
|
| 241 |
|
| 242 |
with st.expander(f"**Evento: {info.get('Evento', 'Sin nombre')} (Ficha: {info.get('FICHA', 'N/A')})**", expanded=True):
|
| 243 |
|
| 244 |
-
# =========================================================================
|
| 245 |
-
# ========= INICIO DEL CAMBIO: ESTRUCTURA CON PESTA脩AS ======================
|
| 246 |
-
# =========================================================================
|
| 247 |
|
| 248 |
tab1, tab2 = st.tabs(["Informaci贸n General", "馃摉 Definici贸n de Caso"])
|
| 249 |
|
|
@@ -345,7 +341,4 @@ if st.session_state.search_results is not None:
|
|
| 345 |
st.markdown(definicion_de_caso.replace('\n', ' \n'))
|
| 346 |
else:
|
| 347 |
st.info("No se encontr贸 una definici贸n de caso oficial para este evento.")
|
| 348 |
-
|
| 349 |
-
# =========================================================================
|
| 350 |
-
# ========= FIN DEL CAMBIO: ESTRUCTURA CON PESTA脩AS =======================
|
| 351 |
-
# =========================================================================
|
|
|
|
| 1 |
+
# ==================== Buscador de Eventos de Notificaci贸n SIVIGILA - Colombia 2025 =====================================
|
| 2 |
|
| 3 |
|
| 4 |
# JAIRO ALEXANDER ERASO MD U Nacional de Colombia.
|
|
|
|
| 49 |
|
| 50 |
model = get_gemini_model()
|
| 51 |
|
|
|
|
| 52 |
@st.cache_data
|
| 53 |
def load_data():
|
| 54 |
"""Carga y procesa los archivos JSON, uni茅ndolos para un acceso r谩pido."""
|
|
|
|
| 178 |
with st.form(key="search_form"):
|
| 179 |
query = st.text_input(
|
| 180 |
"Ingrese su b煤squeda:",
|
| 181 |
+
placeholder="Ej: Lepra, T630, mordedura de serpiente, 3MC...",
|
| 182 |
help="Puede buscar por nombre de la enfermedad, palabras clave, o c贸digos CIE."
|
| 183 |
)
|
| 184 |
submitted = st.form_submit_button("Buscar", type="primary")
|
|
|
|
| 240 |
|
| 241 |
with st.expander(f"**Evento: {info.get('Evento', 'Sin nombre')} (Ficha: {info.get('FICHA', 'N/A')})**", expanded=True):
|
| 242 |
|
|
|
|
|
|
|
|
|
|
| 243 |
|
| 244 |
tab1, tab2 = st.tabs(["Informaci贸n General", "馃摉 Definici贸n de Caso"])
|
| 245 |
|
|
|
|
| 341 |
st.markdown(definicion_de_caso.replace('\n', ' \n'))
|
| 342 |
else:
|
| 343 |
st.info("No se encontr贸 una definici贸n de caso oficial para este evento.")
|
| 344 |
+
|
|
|
|
|
|
|
|
|