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