Spaces:
Sleeping
Sleeping
Update modules/ui/ui.py
Browse files- modules/ui/ui.py +62 -23
modules/ui/ui.py
CHANGED
|
@@ -203,32 +203,71 @@ def is_institutional_email(email):
|
|
| 203 |
return not any(domain in email.lower() for domain in forbidden_domains)
|
| 204 |
|
| 205 |
def display_videos_and_info(lang_code, t):
|
| 206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
"
|
| 214 |
-
"Entrevista con el Dr. Guillermo Ru铆z. Lima, Per煤": "https://www.youtube.com/watch?v=_ch8cRja3oc",
|
| 215 |
-
"Demo de la versi贸n de escritorio.": "https://www.youtube.com/watch?v=nP6eXbog-ZY"
|
| 216 |
-
}
|
| 217 |
|
| 218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
-
|
| 231 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
|
| 233 |
#Despu茅s de iniciar sesi贸n
|
| 234 |
####################################
|
|
|
|
| 203 |
return not any(domain in email.lower() for domain in forbidden_domains)
|
| 204 |
|
| 205 |
def display_videos_and_info(lang_code, t):
|
| 206 |
+
# Secci贸n de videos
|
| 207 |
+
st.header("Conferencias")
|
| 208 |
+
videos = {
|
| 209 |
+
"Reel AIdeaText": "https://youtu.be/UA-md1VxaRc",
|
| 210 |
+
"Presentaci贸n en SENDA, UNAM. Ciudad de M茅xico, M茅xico" : "https://www.youtube.com/watch?v=XFLvjST2cE0",
|
| 211 |
+
"Presentaci贸n en PyCon 2024. Colombia, Medell铆n": "https://www.youtube.com/watch?v=Jn545-IKx5Q",
|
| 212 |
+
"Presentaci贸n en la Fundaci贸n Ser Maaestro. Lima, Per煤": "https://www.youtube.com/watch?v=imc4TI1q164",
|
| 213 |
+
"Presentaci贸n en el programa de incubaci贸n Explora del IFE, TEC de Monterrey, Nuevo Le贸n, M茅xico": "https://www.youtube.com/watch?v=Fqi4Di_Rj_s",
|
| 214 |
+
"Entrevista con el Dr. Guillermo Ru铆z. Lima, Per煤": "https://www.youtube.com/watch?v=_ch8cRja3oc",
|
| 215 |
+
"Demo de la versi贸n de escritorio.": "https://www.youtube.com/watch?v=nP6eXbog-ZY"
|
| 216 |
+
}
|
| 217 |
|
| 218 |
+
selected_title = st.selectbox("Selecciona una conferencia:", list(videos.keys()))
|
| 219 |
+
if selected_title in videos:
|
| 220 |
+
try:
|
| 221 |
+
st_player(videos[selected_title])
|
| 222 |
+
except Exception as e:
|
| 223 |
+
st.error(f"Error al cargar el video: {str(e)}")
|
|
|
|
|
|
|
|
|
|
| 224 |
|
| 225 |
+
# Nueva secci贸n de fotograf铆as
|
| 226 |
+
st.header("Galer铆a de Im谩genes")
|
| 227 |
+
|
| 228 |
+
# Crear dos columnas para las im谩genes
|
| 229 |
+
col1, col2 = st.columns(2)
|
| 230 |
+
|
| 231 |
+
with col1:
|
| 232 |
+
st.image("/path/to/image1.jpg", caption="PyCon Colombia 2024", use_column_width=True)
|
| 233 |
+
st.image("/path/to/image2.jpg", caption="SENDA UNAM 2024", use_column_width=True)
|
| 234 |
+
|
| 235 |
+
with col2:
|
| 236 |
+
st.image("/path/to/image3.jpg", caption="Fundaci贸n Ser Maestro", use_column_width=True)
|
| 237 |
+
st.image("/path/to/image4.jpg", caption="TEC Monterrey", use_column_width=True)
|
| 238 |
|
| 239 |
+
# Nueva secci贸n de eventos
|
| 240 |
+
st.header("Eventos y Presentaciones")
|
| 241 |
+
|
| 242 |
+
st.markdown("""
|
| 243 |
+
### 2024
|
| 244 |
+
- **PyCon Colombia** - Medell铆n, Colombia
|
| 245 |
+
- Presentaci贸n: "AIdeaText: Herramienta de an谩lisis textual"
|
| 246 |
+
- Fecha: Febrero 2024
|
| 247 |
+
|
| 248 |
+
- **SENDA UNAM** - Ciudad de M茅xico, M茅xico
|
| 249 |
+
- Presentaci贸n: "Innovaci贸n en el an谩lisis de textos acad茅micos"
|
| 250 |
+
- Fecha: Enero 2024
|
| 251 |
+
|
| 252 |
+
### 2023
|
| 253 |
+
- **Fundaci贸n Ser Maestro** - Lima, Per煤
|
| 254 |
+
- Taller: "An谩lisis textual para docentes"
|
| 255 |
+
- Fecha: Diciembre 2023
|
| 256 |
+
|
| 257 |
+
- **TEC de Monterrey** - Nuevo Le贸n, M茅xico
|
| 258 |
+
- Programa de incubaci贸n Explora
|
| 259 |
+
- Fecha: Noviembre 2023
|
| 260 |
+
""")
|
| 261 |
+
|
| 262 |
+
# Secci贸n de novedades
|
| 263 |
+
st.header("Novedades de la versi贸n actual")
|
| 264 |
+
st.markdown("""
|
| 265 |
+
- Interfaz mejorada para una mejor experiencia de usuario
|
| 266 |
+
- Optimizaci贸n del an谩lisis morfosint谩ctico
|
| 267 |
+
- Soporte para m煤ltiples idiomas
|
| 268 |
+
- Nuevo m贸dulo de an谩lisis del discurso
|
| 269 |
+
- Sistema de chat integrado para soporte
|
| 270 |
+
""")
|
| 271 |
|
| 272 |
#Despu茅s de iniciar sesi贸n
|
| 273 |
####################################
|