And I’m the admin of the group so I don’t need a permission.
But I have a trouble with accessing a private dataset. What should I do?
1 Like
Try like this.
dataset = load_dataset("author/dataset", token=access_token)
1 Like
Thanks, but same issue again, When I changed it to public dataset, I can load dataset,
And I also have checked my tokens settings when I used dataset as private.
1 Like
It seems that the fact that it can be loaded if it is public means that it is not a problem with the library version, so it is strange… Only the token is not being passed correctly.
It seems that there have been similar cases in the past.
There have been a lot of questions about authentication in the past few days, so there may be a bug on the HF side.
When I try to run the following code to load a dataset from Hugging Face hub to google Colab, I get an error!
! pip install transformers datasets
from datasets import load_dataset
cv_13 = load_dataset("mozilla-foundation/common_voice_13_0", "en", split="train")
<ipython-input-9-4d772f75be89> in <cell line: 3>()
1 from datasets import load_dataset
2
----> 3 cv_13 = load_dataset("mozilla-foundation/common_voice_13_0", "en", split="train")
2 frames
/usr/local/lib/python3.10/dist-pac…
opened 06:52AM - 06 Jun 24 UTC
closed 11:27AM - 01 Jul 24 UTC
### Describe the bug
```
File "/root/miniconda3/envs/gino_conda/lib/pyth… on3.9/site-packages/datasets/load.py", line 1852, in dataset_module_factory
raise DatasetNotFoundError(msg + f" at revision '{revision}'" if revision else msg)
datasets.exceptions.DatasetNotFoundError: Dataset 'xxx' doesn't exist on the Hub or cannot be accessed
>>> dataset = load_dataset("xxxx", token=True)
404 error 404 Client Error. (Request ID: Root=xxxx)
Repository Not Found for url: https://huggingface.co/api/datasets/xxx/xxx.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/miniconda3/envs/gino_conda/lib/python3.9/site-packages/datasets/load.py", line 2593, in load_dataset
builder_instance = load_dataset_builder(
File "/root/miniconda3/envs/gino_conda/lib/python3.9/site-packages/datasets/load.py", line 2265, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/root/miniconda3/envs/gino_conda/lib/python3.9/site-packages/datasets/load.py", line 1910, in dataset_module_factory
raise e1 from None
File "/root/miniconda3/envs/gino_conda/lib/python3.9/site-packages/datasets/load.py", line 1852, in dataset_module_factory
raise DatasetNotFoundError(msg + f" at revision '{revision}'" if revision else msg)
datasets.exceptions.DatasetNotFoundError: Dataset 'xxx' doesn't exist on the Hub or cannot be accessed
```
### Steps to reproduce the bug
123
### Expected behavior
123
### Environment info
123
oh…okay thanks for your help
1 Like