Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,10 @@ def pdf2text(file_path):
|
|
| 36 |
|
| 37 |
def ner(text, labels, threshold) :
|
| 38 |
labels = labels.split(",")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
return {
|
| 40 |
"text": text,
|
| 41 |
"entities": [
|
|
|
|
| 36 |
|
| 37 |
def ner(text, labels, threshold) :
|
| 38 |
labels = labels.split(",")
|
| 39 |
+
labels = [label.strip() for label in labels]
|
| 40 |
+
print(labels)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
return {
|
| 44 |
"text": text,
|
| 45 |
"entities": [
|