fix bug: The dataset_id is already part of the path here.

This commit is contained in:
dfei 2025-01-29 03:15:50 +08:00
parent 862bf78464
commit f6e396f1b0

View File

@ -45,7 +45,7 @@ def get_data_path(dataset_id: str, local_mode: bool = False):
return hf_id return hf_id
else: else:
# for the local path # for the local path
local_path = DATASETS_MAPPING[dataset_id]['local'] local_path = dataset_id
local_path = os.path.join(cache_dir, local_path) local_path = os.path.join(cache_dir, local_path)
if not os.path.exists(local_path): if not os.path.exists(local_path):