Spaces:
Running
Running
Update app.py
Browse files
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;
|
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}"
|