Szczotar93
commited on
Update handler.py
Browse files- 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 |
,
|