riccorl commited on
Commit
9da9a9e
1 Parent(s): 5937143

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -223,6 +223,9 @@ def run_client():
223
  display = displacy.render(
224
  dict_of_ents, manual=True, style="ent", options=options
225
  )
 
 
 
226
  with st.container():
227
  st.write(display, unsafe_allow_html=True)
228
 
 
223
  display = displacy.render(
224
  dict_of_ents, manual=True, style="ent", options=options
225
  )
226
+ display = display.replace("\n", " ")
227
+ # heurstic, prevents split of annotation decorations
228
+ display = display.replace("border-radius: 0.35em;", "border-radius: 0.35em; white-space: nowrap;")
229
  with st.container():
230
  st.write(display, unsafe_allow_html=True)
231