Update app.py
Browse files
app.py
CHANGED
@@ -109,4 +109,5 @@ if Run_Button and input_text != "":
|
|
109 |
# colors = {'PER': '#85DCDF', 'LOC': '#DF85DC', 'ORG': '#DCDF85', 'MISC': '#85ABDF',}
|
110 |
html = spacy.displacy.render(spacy_display, style="ent", minify=True, manual=True, options={"ents": spacy_entity_list}) # , "colors": colors})
|
111 |
style = "<style>mark.entity { display: inline-block }</style>"
|
112 |
-
st.write(f"{style}{get_html(html)}", unsafe_allow_html=True)
|
|
|
|
109 |
# colors = {'PER': '#85DCDF', 'LOC': '#DF85DC', 'ORG': '#DCDF85', 'MISC': '#85ABDF',}
|
110 |
html = spacy.displacy.render(spacy_display, style="ent", minify=True, manual=True, options={"ents": spacy_entity_list}) # , "colors": colors})
|
111 |
style = "<style>mark.entity { display: inline-block }</style>"
|
112 |
+
st.write(f"{style}{get_html(html)}", unsafe_allow_html=True)
|
113 |
+
|