Szczotar93 commited on
Commit
e10b388
·
verified ·
1 Parent(s): 7805cf7

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -102,7 +102,7 @@ def _process_outputs(encoding, tokenizer, labels, scores, images, processor, thr
102
  # entite_wordsidx.append(entite_wordsidx[-1] + 1)
103
  entities.append(
104
  {
105
- "word": processor.decode(encoding.input_ids[0][entite_wordsidx]),
106
  "label": unique_lables[idx],
107
  "score": score_mean
108
  ,
 
102
  # entite_wordsidx.append(entite_wordsidx[-1] + 1)
103
  entities.append(
104
  {
105
+ "word": processor.decode(encoding.input_ids[0][entite_wordsidx].tolist()),
106
  "label": unique_lables[idx],
107
  "score": score_mean
108
  ,