AIdeaText commited on
Commit
fd5c262
·
verified ·
1 Parent(s): bc20174

Update modules/semantic/semantic_interface.py

Browse files
modules/semantic/semantic_interface.py CHANGED
@@ -52,33 +52,39 @@ def display_semantic_interface(lang_code, nlp_models, semantic_t):
52
 
53
  # Contenedor principal para controles
54
  with st.container():
55
- # Área de carga de archivo y botones
56
  col_upload, col_analyze, col_export, col_new = st.columns([4,2,2,2])
57
 
58
  with col_upload:
59
  uploaded_file = st.file_uploader(
60
- semantic_t.get('file_uploader', 'Upload text file'),
61
- type=['txt']
 
62
  )
63
 
64
  with col_analyze:
65
  analyze_button = st.button(
66
- semantic_t.get('analyze_button', 'Analyze'),
67
- disabled=(uploaded_file is None)
 
 
68
  )
69
 
70
  with col_export:
71
  export_button = st.button(
72
- semantic_t.get('export_button', 'Export'),
73
- disabled=not ('semantic_result' in st.session_state)
 
 
74
  )
75
 
76
  with col_new:
77
  new_button = st.button(
78
- semantic_t.get('new_analysis', 'New'),
79
- disabled=not ('semantic_result' in st.session_state)
 
 
80
  )
81
-
82
  # Línea separadora
83
  st.markdown("---")
84
 
 
52
 
53
  # Contenedor principal para controles
54
  with st.container():
 
55
  col_upload, col_analyze, col_export, col_new = st.columns([4,2,2,2])
56
 
57
  with col_upload:
58
  uploaded_file = st.file_uploader(
59
+ semantic_t.get('file_uploader', 'Upload text file'),
60
+ type=['txt'],
61
+ key="semantic_file_uploader" # Key única para semántico
62
  )
63
 
64
  with col_analyze:
65
  analyze_button = st.button(
66
+ semantic_t.get('semantic_analyze_button', 'Analyze Semantics'), # Nombre específico
67
+ key="semantic_analysis_button", # Key única para semántico
68
+ disabled=(uploaded_file is None),
69
+ use_container_width=True
70
  )
71
 
72
  with col_export:
73
  export_button = st.button(
74
+ semantic_t.get('semantic_export_button', 'Export Semantic'), # Nombre específico
75
+ key="semantic_export_button", # Key única para semántico
76
+ disabled=not ('semantic_result' in st.session_state),
77
+ use_container_width=True
78
  )
79
 
80
  with col_new:
81
  new_button = st.button(
82
+ semantic_t.get('semantic_new_button', 'New Semantic'), # Nombre específico
83
+ key="semantic_new_button", # Key única para semántico
84
+ disabled=not ('semantic_result' in st.session_state),
85
+ use_container_width=True
86
  )
87
+
88
  # Línea separadora
89
  st.markdown("---")
90