AIdeaText commited on
Commit
db44eaa
verified
1 Parent(s): 0e293db

Update modules/studentact/current_situation_interface.py

Browse files
modules/studentact/current_situation_interface.py CHANGED
@@ -109,7 +109,7 @@ def display_current_situation_interface(lang_code, nlp_models, t):
109
  with input_col:
110
  # Text area con manejo de estado
111
  text_input = st.text_area(
112
- current_situation_t = t.get('input_prompt', "Escribe o pega tu texto aqu铆:"),
113
  height=400,
114
  key=f"text_area_{lang_code}", # Clave 煤nica por idioma
115
  value=st.session_state.text_input,
@@ -122,7 +122,7 @@ def display_current_situation_interface(lang_code, nlp_models, t):
122
  st.session_state.show_results = False
123
 
124
  if st.button(
125
- current_situation_t = t.get('first_analyze_button', "Analizar mi escritura"),
126
  type="primary",
127
  disabled=not text_input.strip(),
128
  use_container_width=True,
@@ -148,7 +148,7 @@ def display_current_situation_interface(lang_code, nlp_models, t):
148
 
149
  except Exception as e:
150
  logger.error(f"Error en an谩lisis: {str(e)}")
151
- st.error(current_situation_t = t.get('analysis_error', "Error al analizar el texto"))
152
 
153
  # Mostrar resultados en la columna derecha
154
  with results_col:
@@ -177,7 +177,7 @@ def display_current_situation_interface(lang_code, nlp_models, t):
177
  horizontal=True,
178
  key="text_type_radio",
179
  label_visibility="collapsed",
180
- help=current_situation_t = t.get('text_type_help', "Selecciona el tipo de texto para ajustar los criterios de evaluaci贸n")
181
  )
182
 
183
  st.session_state.current_text_type = text_type
 
109
  with input_col:
110
  # Text area con manejo de estado
111
  text_input = st.text_area(
112
+ current_situation_t.get('input_prompt', "Escribe o pega tu texto aqu铆:"),
113
  height=400,
114
  key=f"text_area_{lang_code}", # Clave 煤nica por idioma
115
  value=st.session_state.text_input,
 
122
  st.session_state.show_results = False
123
 
124
  if st.button(
125
+ current_situation_t.get('first_analyze_button', "Analizar mi escritura"),
126
  type="primary",
127
  disabled=not text_input.strip(),
128
  use_container_width=True,
 
148
 
149
  except Exception as e:
150
  logger.error(f"Error en an谩lisis: {str(e)}")
151
+ st.error(current_situation_t.get('analysis_error', "Error al analizar el texto"))
152
 
153
  # Mostrar resultados en la columna derecha
154
  with results_col:
 
177
  horizontal=True,
178
  key="text_type_radio",
179
  label_visibility="collapsed",
180
+ help=current_situation_t.get('text_type_help', "Selecciona el tipo de texto para ajustar los criterios de evaluaci贸n")
181
  )
182
 
183
  st.session_state.current_text_type = text_type