DykeF commited on
Commit
fa61cd4
1 Parent(s): 4d1e95a

Update NCTCRCHE100K.py

Browse files
Files changed (1) hide show
  1. NCTCRCHE100K.py +1 -1
NCTCRCHE100K.py CHANGED
@@ -62,7 +62,7 @@ class NCTCRCHE100K(datasets.GeneratorBasedBuilder):
62
  for filepath, image in images:
63
  # extract text from each item
64
  yield idx, {
65
- "image": {"filepath": filepath, "image": image.read()},
66
  "text": filepath[:filepath.find("-")]
67
  }
68
  idx += 1
 
62
  for filepath, image in images:
63
  # extract text from each item
64
  yield idx, {
65
+ "image": {"path": filepath, "bytes": image.read()},
66
  "text": filepath[:filepath.find("-")]
67
  }
68
  idx += 1