Datasets:

Modalities:
Audio
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
Dask

Dataset Viewer issue

#10
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 before, not 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 Thanks for letting know.
BTW, is there anyway having python loading script and use manual configuration to show dataset viewer?

Sure! Feel free to read https://huggingface.co/docs/hub/datasets-data-files-configuration to see how to configure the dataset. The space I mentioned in the last comment could do it for you.

@severo Hi. Your link (https://huggingface.co/spaces/albertvillanova/convert-dataset-to-parquet) shows nothing.
it says

Runtime error
Scheduling failure: not enough hardware capacity
Container logs:

Failed to retrieve error logs: The user aborted a request.

Oh! Thanks for reporting. cc @albertvillanova who made it.

@severo @albertvillanova
Hi. I'm follwoing this link https://huggingface.co/datasets/jmhessel/newyorker_caption_contest/discussions/4.
I can create the first config, but "revision=" attribute gives error, not allows me to commit additional configs in the pr.

revision = "refs/pr/19" # <- replace with the correct PR number
config = 'sqa5'
dataset = load_dataset(repo_id, config)
dataset.push_to_hub(repo_id, config_name=config, commit_message="upload the next config", revision=revision, token=token)

gives
"Invalid reference for a branch: refs/pr/19"

Can you help? I'm trying to commit here. https://huggingface.co/datasets/asapp/slue-phase-2/discussions/19

nevermind. I just committed to main branch directly.

sshon-asapp changed discussion status to closed

Sign up or log in to comment