carisackc commited on
Commit
606fc01
1 Parent(s): 9dda51c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def genEntities(ann, entity):
111
  if entity in entities:
112
  ent = list(trans_df[trans_df['Class']==entity]['Entity'].unique())
113
  entlist = ",".join(ent)
114
- st.markdown(f'<p style="color:{ent_col[entity]};font-size:16px;">{entlist}</p>', unsafe_allow_html=True)
115
  #for i in ent:
116
  #st.markdown(f'<p style="color:{ent_col[entity]};font-size:20px;">{i}</p>', unsafe_allow_html=True)
117
 
@@ -195,3 +195,7 @@ with col2:
195
  #st.table(trans_df)
196
  st.markdown('**NER**')
197
  st.markdown(ent_html, unsafe_allow_html=True)
 
 
 
 
 
111
  if entity in entities:
112
  ent = list(trans_df[trans_df['Class']==entity]['Entity'].unique())
113
  entlist = ",".join(ent)
114
+ st.markdown(f'<p style="background-color:{ent_col[entity]};color:#080808;font-size:16px;">{entlist}</p>', unsafe_allow_html=True)
115
  #for i in ent:
116
  #st.markdown(f'<p style="color:{ent_col[entity]};font-size:20px;">{i}</p>', unsafe_allow_html=True)
117
 
 
195
  #st.table(trans_df)
196
  st.markdown('**NER**')
197
  st.markdown(ent_html, unsafe_allow_html=True)
198
+
199
+
200
+
201
+