emanuelaboros commited on
Commit
c5b3453
·
1 Parent(s): c619232

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,14 +23,14 @@ def prepare_entities_for_highlight(text, results):
23
  for entity in entity_list:
24
  # Debugging information to check character positions
25
  print(
26
- f"Entity: {entity['word']}, Start: {entity['start']}, End: {entity['end']}"
27
  )
28
  # Append entity with character indices
29
  entities.append(
30
  {
31
  "start": entity["start"],
32
  "end": entity["end"],
33
- "label": f"{entity['entity']} ({entity['score']:.2f}%)",
34
  }
35
  )
36
 
 
23
  for entity in entity_list:
24
  # Debugging information to check character positions
25
  print(
26
+ f"Entity: {entity['word']}, Start: {entity['start']}, End: {entity['end']}, Type: {entity['entity']}"
27
  )
28
  # Append entity with character indices
29
  entities.append(
30
  {
31
  "start": entity["start"],
32
  "end": entity["end"],
33
+ "label": f"{entity['entity']}", # ({entity['score']:.2f}%)
34
  }
35
  )
36