Datasets:
pain
/

Languages:
Arabic
ArXiv:
License:
pain commited on
Commit
161b4e2
1 Parent(s): 8bb50c8

Update AASL.py

Browse files
Files changed (1) hide show
  1. AASL.py +3 -2
AASL.py CHANGED
@@ -69,11 +69,12 @@ class AASL(datasets.GeneratorBasedBuilder):
69
  print(x)
70
  print(images)
71
 
72
- for i, file in enumerate(file):
73
  if os.path.basename(file).endswith(".jpg"):
 
74
  with open(file, "rb") as f:
75
  yield str(i), {
76
  "image": file,
77
- "labels": os.path.basename(os.path.dirname(file)).lower(),
78
  }
79
 
 
69
  print(x)
70
  print(images)
71
 
72
+ for i, file in enumerate(images):
73
  if os.path.basename(file).endswith(".jpg"):
74
+ # print(os.path.basename(os.path.dirname(file)).lower())
75
  with open(file, "rb") as f:
76
  yield str(i), {
77
  "image": file,
78
+ "labels": 'test',
79
  }
80