Spaces:
Sleeping
Sleeping
correct error
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def highlight_text(fileObj):
|
|
52 |
entities = nlp(text)
|
53 |
df = entities_to_df(entities)
|
54 |
|
55 |
-
entities =
|
56 |
|
57 |
entities = transform_entity_type(entities)
|
58 |
|
|
|
52 |
entities = nlp(text)
|
53 |
df = entities_to_df(entities)
|
54 |
|
55 |
+
entities = df.to_dict('records')
|
56 |
|
57 |
entities = transform_entity_type(entities)
|
58 |
|