Upload processor_flamingo.py with huggingface_hub
Browse files- 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
|
| 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:
|