AnaChikashua commited on
Commit
f5315f8
·
1 Parent(s): 35d37c3

Update handwriting_dataset.py

Browse files
Files changed (1) hide show
  1. handwriting_dataset.py +1 -1
handwriting_dataset.py CHANGED
@@ -50,6 +50,6 @@ class HandwritingData(datasets.GeneratorBasedBuilder):
50
  text = [c for c in filepath if not 0 <= ord(c) <= 127][0]
51
  yield idx, {
52
  "text": str(filepath),
53
- "char": str(idx),
54
  "image": {"path": filepath, "bytes": image.read()}
55
  }
 
50
  text = [c for c in filepath if not 0 <= ord(c) <= 127][0]
51
  yield idx, {
52
  "text": str(filepath),
53
+ "label": str(idx),
54
  "image": {"path": filepath, "bytes": image.read()}
55
  }