Spaces:
Runtime error
Runtime error
ArneBinder
commited on
Commit
•
8a580d5
1
Parent(s):
246ac96
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ def predict(text):
|
|
29 |
|
30 |
ner_pipeline(document)
|
31 |
|
|
|
32 |
while len(document.entities.predictions) > 0:
|
33 |
entity = document.entities.predictions.pop(0)
|
34 |
print(f"entity detected: {entity}")
|
|
|
29 |
|
30 |
ner_pipeline(document)
|
31 |
|
32 |
+
print(f"list detected entities:")
|
33 |
while len(document.entities.predictions) > 0:
|
34 |
entity = document.entities.predictions.pop(0)
|
35 |
print(f"entity detected: {entity}")
|