JAWCF commited on
Commit
e125c04
·
1 Parent(s): b20e4f6

Update objects.py

Browse files
Files changed (1) hide show
  1. objects.py +1 -1
objects.py CHANGED
@@ -71,6 +71,6 @@ class Objects(datasets.GeneratorBasedBuilder):
71
  for filepath, image in images:
72
  yield idx, {
73
  "image": {"path": filepath, "bytes": image.read()},
74
- "text" : DICT_DESC[filepath],
75
  }
76
  idx+=1
 
71
  for filepath, image in images:
72
  yield idx, {
73
  "image": {"path": filepath, "bytes": image.read()},
74
+ "text" : DICT_DESC[filepath.split("/")[-1]],
75
  }
76
  idx+=1