momergul commited on
Commit
3decd89
·
verified ·
1 Parent(s): 59de332

Upload processor_flamingo.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. processor_flamingo.py +1 -1
processor_flamingo.py CHANGED
@@ -50,7 +50,7 @@ class FlamingoProcessor(ProcessorMixin):
50
  offset_mapping = offset_mapping[0].tolist()
51
  true_offset = offset_mapping[0][-1]
52
  new_offsets = []
53
- for start, end in new_offsets:
54
  if start == 0:
55
  new_offsets.append((0, 0))
56
  else:
 
50
  offset_mapping = offset_mapping[0].tolist()
51
  true_offset = offset_mapping[0][-1]
52
  new_offsets = []
53
+ for start, end in offset_mapping:
54
  if start == 0:
55
  new_offsets.append((0, 0))
56
  else: