Error while running download script
I'm seeing the following error when running a download:
$ python download.pytrust_remote_code is not supported anymore.
Please check that the Hugging Face dataset 'MahmoodLab/Patho-Bench' isn't based on a loading script and remove trust_remote_code.
If the dataset is based on a loading script, please ask the dataset author to remove it and convert it to a standard format like Parquet.
Traceback (most recent call last):
File "/projects/site/dia/cbred/users/rudermad/Misc/Patho-Bench-datasets/download.py", line 7, in
datasets.load_dataset(
File "/home/rudermad/scratch/conda/envs/pathobench/lib/python3.10/site-packages/datasets/load.py", line 1397, in load_dataset
builder_instance = load_dataset_builder(
File "/home/rudermad/scratch/conda/envs/pathobench/lib/python3.10/site-packages/datasets/load.py", line 1137, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/home/rudermad/scratch/conda/envs/pathobench/lib/python3.10/site-packages/datasets/load.py", line 1036, in dataset_module_factory
raise e1 from None
File "/home/rudermad/scratch/conda/envs/pathobench/lib/python3.10/site-packages/datasets/load.py", line 994, in dataset_module_factory
raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")
RuntimeError: Dataset scripts are no longer supported, but found Patho-Bench.py
Here's the code in download.py:
from huggingface_hub import login
login(token="MY_TOKEN")
import datasets
dataset='*'
datasets.load_dataset(
'MahmoodLab/Patho-Bench',
cache_dir='.',
dataset_to_download=dataset,
trust_remote_code=True
)
Any ideas? Thanks
BTW I get the same "RuntimeError: Dataset scripts are no longer supported, but found Patho-Bench.py" error when I remove the line "trust_remote_code=True".