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