Update modules/ui/ui.py
Browse files- modules/ui/ui.py +6 -6
modules/ui/ui.py
CHANGED
@@ -213,24 +213,24 @@ def is_institutional_email(email):
|
|
213 |
|
214 |
def display_videos_and_info(lang_code, t):
|
215 |
# Crear tabs para cada secci贸n
|
216 |
-
|
217 |
-
"
|
218 |
"Videos de presentaciones",
|
219 |
"Ponencias acad茅micas",
|
220 |
"Control de versiones"
|
221 |
])
|
222 |
|
223 |
# Tab de Galer铆a
|
224 |
-
with
|
225 |
-
|
226 |
"Uso de los diagramas de arco": "https://www.youtube.com/watch?v=JnP2U1Fm0rc",
|
227 |
"Uso del bot para buscar respuestas" : "https://www.youtube.com/watch?v=GFKDS0K2s7E",
|
228 |
}
|
229 |
|
230 |
-
selected_title = st.selectbox("Selecciona un video tutorial:", list(
|
231 |
if selected_title in videos_tutoriales:
|
232 |
try:
|
233 |
-
st_player(
|
234 |
except Exception as e:
|
235 |
st.error(f"Error al cargar el video: {str(e)}")
|
236 |
|
|
|
213 |
|
214 |
def display_videos_and_info(lang_code, t):
|
215 |
# Crear tabs para cada secci贸n
|
216 |
+
tab_use_case, tab_videos, tab_events, tab_news = st.tabs([
|
217 |
+
"Casos de uso",
|
218 |
"Videos de presentaciones",
|
219 |
"Ponencias acad茅micas",
|
220 |
"Control de versiones"
|
221 |
])
|
222 |
|
223 |
# Tab de Galer铆a
|
224 |
+
with tab_use_case:
|
225 |
+
use_case_videos = {
|
226 |
"Uso de los diagramas de arco": "https://www.youtube.com/watch?v=JnP2U1Fm0rc",
|
227 |
"Uso del bot para buscar respuestas" : "https://www.youtube.com/watch?v=GFKDS0K2s7E",
|
228 |
}
|
229 |
|
230 |
+
selected_title = st.selectbox("Selecciona un video tutorial:", list(use_case_videos.keys()))
|
231 |
if selected_title in videos_tutoriales:
|
232 |
try:
|
233 |
+
st_player(use_case_videos[selected_title])
|
234 |
except Exception as e:
|
235 |
st.error(f"Error al cargar el video: {str(e)}")
|
236 |
|