jamescalam commited on
Commit
7ae852e
1 Parent(s): b6da8cb

Update unsplash-25k-photos.py

Browse files
Files changed (1) hide show
  1. unsplash-25k-photos.py +3 -2
unsplash-25k-photos.py CHANGED
@@ -55,6 +55,7 @@ class Unsplash(datasets.GeneratorBasedBuilder):
55
  'ai_primary_landmark_latitude': datasets.Value("string"),
56
  'ai_primary_landmark_longitude': datasets.Value("string"),
57
  'ai_primary_landmark_confidence': datasets.Value("string"),
 
58
  }
59
  ),
60
  supervised_keys=None,
@@ -77,9 +78,9 @@ class Unsplash(datasets.GeneratorBasedBuilder):
77
  id_ = 0
78
  for line in f:
79
  if id_ == 0:
80
- cols = line.split("\t")
81
  id_ += 1
82
  else:
83
- values = line.split("\t")
84
  yield id_, {cols[i]: values[i] for i in range(len(cols))}
85
  id_ += 1
 
55
  'ai_primary_landmark_latitude': datasets.Value("string"),
56
  'ai_primary_landmark_longitude': datasets.Value("string"),
57
  'ai_primary_landmark_confidence': datasets.Value("string"),
58
+ 'blur_hash': datasets.Value("string"),
59
  }
60
  ),
61
  supervised_keys=None,
 
78
  id_ = 0
79
  for line in f:
80
  if id_ == 0:
81
+ cols = line.strip().split("\t")
82
  id_ += 1
83
  else:
84
+ values = line.strip().split("\t")
85
  yield id_, {cols[i]: values[i] for i in range(len(cols))}
86
  id_ += 1