Spaces:
Runtime error
Runtime error
ArneBinder
commited on
Commit
•
b9f5137
1
Parent(s):
7f4ecbd
fix pop
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def predict(text):
|
|
30 |
ner_pipeline(document)
|
31 |
|
32 |
while len(document.entities.predictions) > 0:
|
33 |
-
document.entities.append(document.entities.predictions.pop())
|
34 |
|
35 |
re_pipeline(document)
|
36 |
|
|
|
30 |
ner_pipeline(document)
|
31 |
|
32 |
while len(document.entities.predictions) > 0:
|
33 |
+
document.entities.append(document.entities.predictions.pop(0))
|
34 |
|
35 |
re_pipeline(document)
|
36 |
|