Spaces:
Build error
Build error
Update app.py
Browse files
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 |
+
|