Update app.py
Browse files
app.py
CHANGED
@@ -23,13 +23,21 @@ def main():
|
|
23 |
def logged_in_interface():
|
24 |
nlp_models = load_spacy_models()
|
25 |
languages = {'Español': 'es', 'English': 'en', 'Français': 'fr'}
|
26 |
-
selected_lang = st.sidebar.selectbox("Select Language / Seleccione el idioma / Choisissez la langue", list(languages.keys()))
|
27 |
-
lang_code = languages[selected_lang]
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
tab1, tab2, tab3, tab4 = st.tabs(["Análisis morfosintáctico", "Análisis semántico", "Análisis semántico discursivo", "Mi Progreso"])
|
35 |
|
|
|
23 |
def logged_in_interface():
|
24 |
nlp_models = load_spacy_models()
|
25 |
languages = {'Español': 'es', 'English': 'en', 'Français': 'fr'}
|
|
|
|
|
26 |
|
27 |
+
# Crear una fila en la parte superior
|
28 |
+
col1, col2, col3 = st.columns([2,1,1])
|
29 |
+
|
30 |
+
with col1:
|
31 |
+
st.write(f"Bienvenido, {st.session_state.username}")
|
32 |
+
|
33 |
+
with col2:
|
34 |
+
selected_lang = st.selectbox("Idioma", list(languages.keys()), key="language_selector")
|
35 |
+
lang_code = languages[selected_lang]
|
36 |
+
|
37 |
+
with col3:
|
38 |
+
if st.button("Cerrar Sesión"):
|
39 |
+
st.session_state.logged_in = False
|
40 |
+
st.experimental_rerun()
|
41 |
|
42 |
tab1, tab2, tab3, tab4 = st.tabs(["Análisis morfosintáctico", "Análisis semántico", "Análisis semántico discursivo", "Mi Progreso"])
|
43 |
|