File size: 677 Bytes
6d95c4c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
import json
from huggingface_hub import hf_hub_download


def main():
    file_name_list = []
    predictor_cfg = json.load(open("../predictors/predictors.json"))
    for row in predictor_cfg["predictors"]:
        file_name_list.append(row["filename"])

    for predictor_name in file_name_list:
        if not os.path.exists(predictor_name):
            hf_hub_download(
                token=os.environ.get("HF_TOKEN"),
                repo_id="danyoung/eluc-dataset",
                repo_type="dataset",
                filename=predictor_name,
                local_dir="./",
                local_dir_use_symlinks=False)


if __name__ == "__main__":
    main()