emanuelaboros commited on
Commit
0300379
·
1 Parent(s): 8726584

lets see how the hihgt works

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -73,8 +73,7 @@ def extract_entities(sentence):
73
  print(f"Entities: {entities}")
74
  # Sort entities by their start position
75
  # entities = sorted(entities, key=lambda x: x["start"])
76
- return entities
77
-
78
 
79
  # Create Gradio interface
80
  def ner_app_interface():
 
73
  print(f"Entities: {entities}")
74
  # Sort entities by their start position
75
  # entities = sorted(entities, key=lambda x: x["start"])
76
+ return {"text": sentence, "entities": entities}
 
77
 
78
  # Create Gradio interface
79
  def ner_app_interface():