carisackc commited on
Commit
853acac
1 Parent(s): 7e65432

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -172,8 +172,8 @@ with col2:
172
  colors = { "DISEASE": "pink","CHEMICAL": "orange"}
173
  options = {"ents": [ "DISEASE", "CHEMICAL"],"colors": colors}
174
  ent_html = displacy.render(doc, style="ent", options=options)
175
- # st.markdown(ent_html, unsafe_allow_html=True)
176
- st.markdown('<p class="small-font">'ent_html'</p>', unsafe_allow_html=True)
177
  col3, col4 = st.columns(2)
178
  with col3:
179
  st.text_area('Reference text', str(reference_text))#,label_visibility="hidden")
 
172
  colors = { "DISEASE": "pink","CHEMICAL": "orange"}
173
  options = {"ents": [ "DISEASE", "CHEMICAL"],"colors": colors}
174
  ent_html = displacy.render(doc, style="ent", options=options)
175
+ st.markdown(ent_html, unsafe_allow_html=True)
176
+
177
  col3, col4 = st.columns(2)
178
  with col3:
179
  st.text_area('Reference text', str(reference_text))#,label_visibility="hidden")