Shad0ws commited on
Commit
f8f5be1
·
1 Parent(s): 0d2159e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -54,11 +54,3 @@ if input_text or button_clicked:
54
  st.write("Named Entities:")
55
  st.write(", ".join([f"{ent.text}:{ent.label_}" for ent in entities.ents if "#" not in ent.text and ent.label_ in ["PERSON", "ORG"]]))
56
  st.write("")
57
-
58
-
59
- st.write("Named Entities:")
60
- st.write("<div style='height: 400px; overflow-y: scroll;'>")
61
- for entity in entities.ents:
62
- if "#" not in entity.text and entity.label_ in ["PERSON", "ORG"]:
63
- st.write(entity.text, ":", entity.label_)
64
- st.markdown("</div>")
 
54
  st.write("Named Entities:")
55
  st.write(", ".join([f"{ent.text}:{ent.label_}" for ent in entities.ents if "#" not in ent.text and ent.label_ in ["PERSON", "ORG"]]))
56
  st.write("")