AnaChikashua commited on
Commit
30be7d8
1 Parent(s): ff4c5cb

Update handwriting_dataset.py

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