Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
expert-generated
Source Datasets:
original
ArXiv:
Tags:
License:

Dataset Viewer issue

#1
by sshon-asapp - opened

The dataset viewer is not working.

Error details:

Error code:   ConfigNamesError
Exception:    DatasetWithScriptNotSupportedError
Message:      The dataset viewer doesn't support this dataset because it runs arbitrary python code. Please open a discussion in the discussion tab if you think this is an error and tag 

@lhoestq

	 and 

@severo

	.
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 65, in compute_config_names_response
                  for config in sorted(get_dataset_config_names(path=dataset, token=hf_token))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 351, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1512, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1481, in dataset_module_factory
                  return HubDatasetModuleFactoryWithScript(
                File "/src/services/worker/src/worker/utils.py", line 400, in raise_unsupported_dataset_with_script_or_init
                  raise DatasetWithScriptNotSupportedError(
              libcommon.exceptions.DatasetWithScriptNotSupportedError: The dataset viewer doesn't support this dataset because it runs arbitrary python code. Please open a discussion in the discussion tab if you think this is an error and tag 

@lhoestq

	 and 

@severo

	.

Hi. This was working well before but somehow not working anymore. Can you please check this?

cc @albertvillanova @lhoestq @severo .

Due to security reasons, the viewer is no longer supported on datasets containing a Python loading script.

Note that the dataset can be loaded, although the viewer does not work. You could disable the viewer.

Alternatively, you could convert your dataset to a format which the viewer is supported on, for example, to Parquet by using this Space: https://huggingface.co/spaces/albertvillanova/convert-dataset-to-parquet

@severo @albertvillanova
Hi.
I added test configuration in readme.md like below but it does not showing anything since there's python loading script. I don't want to remove python loading script, and also want to show dataset viewer. Can you help?

configs:
  - config_name: default
    data_files:
      - split: test
        path: data/voxceleb/test.tsv
    sep: "\t"

Indeed: the python script must be deleted in order to be a "data-only" dataset. To do so, one method is to save the dataset as parquet files and push_to_hub. It's what the space normally does. See https://huggingface.co/datasets/jmhessel/newyorker_caption_contest/discussions/4 as an example of how to convert a dataset.

sshon-asapp changed discussion status to closed

Sign up or log in to comment