Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def ner(text, labels, threshold) :
|
|
51 |
"score": 0,
|
52 |
}
|
53 |
for entity in model.predict_entities(
|
54 |
-
text, labels, flat_ner=
|
55 |
)
|
56 |
],
|
57 |
}
|
|
|
51 |
"score": 0,
|
52 |
}
|
53 |
for entity in model.predict_entities(
|
54 |
+
text, labels, flat_ner=True, threshold=threshold
|
55 |
)
|
56 |
],
|
57 |
}
|