Datasets:
pain
/

Languages:
Arabic
ArXiv:
License:
pain commited on
Commit
fd41fe2
1 Parent(s): ae6de76

Update AASL.py

Browse files
Files changed (1) hide show
  1. AASL.py +5 -5
AASL.py CHANGED
@@ -69,8 +69,8 @@ class AASL(datasets.GeneratorBasedBuilder):
69
  print(images)
70
 
71
  for file_path, file_obj in images:
72
-
73
- yield file_path, {
74
- "image": {"path": file_path, "bytes": file_obj.read()},
75
- "label": 'x',
76
- }
 
69
  print(images)
70
 
71
  for file_path, file_obj in images:
72
+ if file_path.startswith("images/"):
73
+ yield file_path, {
74
+ "image": {"path": file_path, "bytes": file_obj.read()},
75
+ "label": 'x',
76
+ }