Update modules/ui.py
Browse files- modules/ui.py +38 -8
modules/ui.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
import matplotlib.pyplot as plt
|
3 |
import pandas as pd
|
4 |
import io
|
@@ -14,14 +15,43 @@ from .syntax_analysis import visualize_syntax
|
|
14 |
##################################################################################################
|
15 |
def login_register_page():
|
16 |
st.title("AIdeaText")
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
##################################################################################################
|
27 |
def login_form():
|
|
|
1 |
import streamlit as st
|
2 |
+
from streamlit_player import st_player # Necesitar谩s instalar esta librer铆a: pip install streamlit-player
|
3 |
import matplotlib.pyplot as plt
|
4 |
import pandas as pd
|
5 |
import io
|
|
|
15 |
##################################################################################################
|
16 |
def login_register_page():
|
17 |
st.title("AIdeaText")
|
18 |
+
|
19 |
+
# Dividir la pantalla en dos columnas
|
20 |
+
left_column, right_column = st.columns([1, 3]) # 25% izquierda, 75% derecha
|
21 |
+
|
22 |
+
# Secci贸n izquierda para login y registro
|
23 |
+
with left_column:
|
24 |
+
tab1, tab2 = st.tabs(["Iniciar Sesi贸n", "Registrarse"])
|
25 |
+
|
26 |
+
with tab1:
|
27 |
+
login_form()
|
28 |
+
|
29 |
+
with tab2:
|
30 |
+
register_form()
|
31 |
+
|
32 |
+
# Secci贸n derecha para videos de YouTube
|
33 |
+
with right_column:
|
34 |
+
st.header("C贸mo usar AIdeaText")
|
35 |
+
|
36 |
+
# Lista de videos de YouTube (puedes a帽adir m谩s)
|
37 |
+
videos = [
|
38 |
+
"https://youtu.be/UA-md1VxaRc", # Reemplaza con tus propios enlaces de YouTube
|
39 |
+
"https://youtu.be/Fqi4Di_Rj_s
|
40 |
+
]
|
41 |
+
|
42 |
+
# Selector de video
|
43 |
+
selected_video = st.selectbox("Selecciona un video tutorial:", videos)
|
44 |
+
|
45 |
+
# Reproductor de YouTube
|
46 |
+
st_player(selected_video)
|
47 |
+
|
48 |
+
# Informaci贸n adicional
|
49 |
+
st.markdown("""
|
50 |
+
## Novedades de AIdeaText
|
51 |
+
- Nueva funci贸n de an谩lisis sem谩ntico
|
52 |
+
- Soporte para m煤ltiples idiomas
|
53 |
+
- Interfaz mejorada para una mejor experiencia de usuario
|
54 |
+
""")
|
55 |
|
56 |
##################################################################################################
|
57 |
def login_form():
|