Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ if input_text or button_clicked:
|
|
| 59 |
ent_list = []
|
| 60 |
for entity in entities.ents:
|
| 61 |
if "#" not in entity.text and entity.label_ in ["PERSON", "ORG"]:
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
| 59 |
ent_list = []
|
| 60 |
for entity in entities.ents:
|
| 61 |
if "#" not in entity.text and entity.label_ in ["PERSON", "ORG"]:
|
| 62 |
+
ent_list.append(entity.text+" : "+entity.label_)
|
| 63 |
+
ent_set = set(ent_list)
|
| 64 |
+
ent_string = ', '.join(list(ent_set))
|
| 65 |
+
st.write(ent_string)
|