carisackc commited on
Commit
9dda51c
·
1 Parent(s): 9509ab7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
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:20px;">{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
 
@@ -185,12 +185,7 @@ with col1:
185
  table["Entity"].append(key)
186
  table["Class"].append(ent_bc[key])
187
  trans_df = pd.DataFrame(table)
188
- # st.subheader("DISEASE")
189
- # genEntities(trans_df, 'DISEASE')
190
- # st.subheader("CHEMICAL")
191
- # genEntities(trans_df, 'CHEMICAL')
192
- #st.table(trans_df)
193
-
194
  with col2:
195
  st.button('NER')
196
  st.markdown('**DISEASE**')
@@ -200,7 +195,3 @@ with col2:
200
  #st.table(trans_df)
201
  st.markdown('**NER**')
202
  st.markdown(ent_html, unsafe_allow_html=True)
203
-
204
-
205
-
206
-
 
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
 
 
185
  table["Entity"].append(key)
186
  table["Class"].append(ent_bc[key])
187
  trans_df = pd.DataFrame(table)
188
+
 
 
 
 
 
189
  with col2:
190
  st.button('NER')
191
  st.markdown('**DISEASE**')
 
195
  #st.table(trans_df)
196
  st.markdown('**NER**')
197
  st.markdown(ent_html, unsafe_allow_html=True)