AIEcosystem commited on
Commit
dbfbc5c
ยท
verified ยท
1 Parent(s): 1adc360

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +14 -8
src/streamlit_app.py CHANGED
@@ -579,14 +579,9 @@ if st.session_state.show_results:
579
  tab_category_details, tab_treemap_viz = st.tabs(["๐Ÿ“‘ Entities Grouped by Category", "๐Ÿ—บ๏ธ Treemap Distribution"])
580
  with tab_category_details:
581
  st.markdown("#### Detailed Entities Table (Grouped by Category)")
582
- with st.expander("See Glossary of tags"):
583
- st.write('''
584
- - **text**: ['entity extracted from your text data']
585
- - **label**: ['label (tag) assigned to a given extracted entity']
586
- - **score**: ['accuracy score; how accurately a tag has been assigned to a given entity']
587
- - **start**: ['index of the start of the corresponding entity']
588
- - **end**: ['index of the end of the corresponding entity']
589
- ''')
590
  unique_categories = list(category_mapping.keys())
591
  tabs_category = st.tabs(unique_categories)
592
  for category, tab in zip(unique_categories, tabs_category):
@@ -601,6 +596,17 @@ if st.session_state.show_results:
601
  )
602
  else:
603
  st.info(f"No entities of category **{category}** were found in the text.")
 
 
 
 
 
 
 
 
 
 
 
604
  with tab_treemap_viz:
605
  st.markdown("#### Treemap: Entity Distribution")
606
  fig_treemap = px.treemap(
 
579
  tab_category_details, tab_treemap_viz = st.tabs(["๐Ÿ“‘ Entities Grouped by Category", "๐Ÿ—บ๏ธ Treemap Distribution"])
580
  with tab_category_details:
581
  st.markdown("#### Detailed Entities Table (Grouped by Category)")
582
+
583
+
584
+
 
 
 
 
 
585
  unique_categories = list(category_mapping.keys())
586
  tabs_category = st.tabs(unique_categories)
587
  for category, tab in zip(unique_categories, tabs_category):
 
596
  )
597
  else:
598
  st.info(f"No entities of category **{category}** were found in the text.")
599
+
600
+ st.markdown("---") # Optional separator
601
+ with st.expander("See Glossary of tags"):
602
+ st.write('''
603
+ - **text**: ['entity extracted from your text data']
604
+ - **label**: ['label (tag) assigned to a given extracted entity']
605
+ - **score**: ['accuracy score; how accurately a tag has been assigned to a given entity']
606
+ - **start**: ['index of the start of the corresponding entity']
607
+ - **end**: ['index of the end of the corresponding entity']
608
+ ''')
609
+
610
  with tab_treemap_viz:
611
  st.markdown("#### Treemap: Entity Distribution")
612
  fig_treemap = px.treemap(