WesScivetti commited on
Commit
2d66282
·
1 Parent(s): 6ee4c37

update app

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -243,6 +243,10 @@ def classify_tokens(text):
243
 
244
  results = token_classifier(text)
245
 
 
 
 
 
246
  for entity in sorted_results:
247
  start = entity["start"]
248
  end = entity["end"]
 
243
 
244
  results = token_classifier(text)
245
 
246
+ sorted_results = sorted(results, key=lambda x: x["start"])
247
+ output = ""
248
+ last_idx = 0
249
+
250
  for entity in sorted_results:
251
  start = entity["start"]
252
  end = entity["end"]