salsarra commited on
Commit
daa2725
1 Parent(s): c4f8321

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def named_entity_recognition(text):
105
  legend = "<div><strong>NER Tags Found:</strong><ul style='list-style-type: disc; padding-left: 20px;'>"
106
  for label in seen_labels:
107
  color = ner_labels.get(label, 'black')
108
- legend += f"<li style='color: {color}; font-weight: bold; display: inline; margin-right: 10px;'>{label}</li>"
109
  legend += "</ul></div>"
110
 
111
  return f"<div>{highlighted_text}</div>{legend}"
 
105
  legend = "<div><strong>NER Tags Found:</strong><ul style='list-style-type: disc; padding-left: 20px;'>"
106
  for label in seen_labels:
107
  color = ner_labels.get(label, 'black')
108
+ legend += f"<li style='color: {color}; font-weight: bold;'>{label}</li>"
109
  legend += "</ul></div>"
110
 
111
  return f"<div>{highlighted_text}</div>{legend}"