Molbap HF staff commited on
Commit
b2654be
1 Parent(s): 04dc36e

Update fixtures-captioning.py

Browse files
Files changed (1) hide show
  1. fixtures-captioning.py +1 -2
fixtures-captioning.py CHANGED
@@ -71,9 +71,8 @@ class FixturesCaptioning(datasets.GeneratorBasedBuilder):
71
  ]
72
  def _generate_examples(self, archive_path):
73
  """Generate examples."""
74
- ordered_list = ["bbox_sample_image.jpeg", "bus.png", "chart.png", "skateboard.png"]
75
  for i, filename in enumerate(archive_path):
76
- key = ordered_list[i]
77
  example = {
78
  "id": key,
79
  "file": filename,
 
71
  ]
72
  def _generate_examples(self, archive_path):
73
  """Generate examples."""
 
74
  for i, filename in enumerate(archive_path):
75
+ key = str(i)
76
  example = {
77
  "id": key,
78
  "file": filename,