varora commited on
Commit
e3076a8
1 Parent(s): 5476663

update hit.py

Browse files
Files changed (1) hide show
  1. hit.py +1 -2
hit.py CHANGED
@@ -119,8 +119,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
119
  #data_urls = _BASE_URL + rel_path
120
 
121
  url = _BASE_URL + "/hit_dataset.json"
122
- response = requests.get(url)
123
- file_structure = json.loads(response.content)
124
  print(file_structure)
125
 
126
  data_urls = {split: [os.path.join(gender, split, "*.gz")] for split in splits}
 
119
  #data_urls = _BASE_URL + rel_path
120
 
121
  url = _BASE_URL + "/hit_dataset.json"
122
+ file_structure = dl_manager.download_and_extract(url)
 
123
  print(file_structure)
124
 
125
  data_urls = {split: [os.path.join(gender, split, "*.gz")] for split in splits}