Gabriel commited on
Commit
9da2a36
1 Parent(s): 1c31023

Update test_images_demo.py

Browse files
Files changed (1) hide show
  1. test_images_demo.py +2 -2
test_images_demo.py CHANGED
@@ -55,9 +55,9 @@ class ExampleImages(datasets.GeneratorBasedBuilder):
55
  for idx, (img_obj, meta_txt) in enumerate(zip(images, metadata_list)):
56
  filepath, image = img_obj
57
 
58
- # text_value = meta_txt.split("= ")[-1].strip()
59
 
60
  yield idx, {
61
  "image": {"path": filepath, "bytes": image.read()},
62
- "text": meta_txt,
63
  }
 
55
  for idx, (img_obj, meta_txt) in enumerate(zip(images, metadata_list)):
56
  filepath, image = img_obj
57
 
58
+ text_value = meta_txt.split("= ")[-1].strip()
59
 
60
  yield idx, {
61
  "image": {"path": filepath, "bytes": image.read()},
62
+ "text": text_value,
63
  }