emanuelaboros commited on
Commit
b3b05b5
·
1 Parent(s): 03b75f6

update fields

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def prepare_entities_for_highlight(text, results):
60
  entity_text = text[
61
  entity["start"] : entity["end"]
62
  ].strip() # Ensure we're working with the correct portion of the text
63
- entity["text"] = entity_text
64
  print(f"Entity text: {entity}")
65
 
66
  entities.append(entity)
 
60
  entity_text = text[
61
  entity["start"] : entity["end"]
62
  ].strip() # Ensure we're working with the correct portion of the text
63
+ entity["surface"] = entity_text
64
  print(f"Entity text: {entity}")
65
 
66
  entities.append(entity)