AIdeaText commited on
Commit
8275cdb
·
verified ·
1 Parent(s): 793b83e

Update modules/ui/ui.py

Browse files
Files changed (1) hide show
  1. modules/ui/ui.py +2 -10
modules/ui/ui.py CHANGED
@@ -826,15 +826,8 @@ def display_semantic_analysis_interface(nlp_models, lang_code):
826
 
827
  # Mostrar conceptos clave
828
  with st.expander(t['key_concepts'], expanded=True):
829
- for concept, score in analysis_result['key_concepts']:
830
- st.write(f"{concept}: {score:.2f}")
831
-
832
- # Mostrar entidades identificadas
833
- with st.expander(t['identified_entities'], expanded=True):
834
- for entity in analysis_result['entities']:
835
- st.write(f"{entity['text']} ({entity['label']}):")
836
- st.write(f"Contexto: {entity['context']}")
837
- st.write("---")
838
 
839
  # Mostrar el gráfico de relaciones conceptuales
840
  with st.expander(t['conceptual_relations'], expanded=True):
@@ -847,7 +840,6 @@ def display_semantic_analysis_interface(nlp_models, lang_code):
847
  st.error(t['error_message'])
848
  else:
849
  st.warning(t['warning_message'])
850
-
851
  ##################################################################################################
852
  def display_discourse_analysis_interface(nlp_models, lang_code):
853
  translations = {
 
826
 
827
  # Mostrar conceptos clave
828
  with st.expander(t['key_concepts'], expanded=True):
829
+ for concept, frequency in analysis_result['key_concepts']:
830
+ st.write(f"{concept}: {frequency:.2f}")
 
 
 
 
 
 
 
831
 
832
  # Mostrar el gráfico de relaciones conceptuales
833
  with st.expander(t['conceptual_relations'], expanded=True):
 
840
  st.error(t['error_message'])
841
  else:
842
  st.warning(t['warning_message'])
 
843
  ##################################################################################################
844
  def display_discourse_analysis_interface(nlp_models, lang_code):
845
  translations = {