Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Jun 19, 2024
1 parent f7edd28 commit 931df22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/dataset_script.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ as long as your dataset repository has a [required structure](./repository_struc

<Tip warning=true>

In the next major release, the new safety features of 馃 Datasets will disable running dataset loading scripts by default, and you will have to pass `trust_remote_code=True` to load datasets that require running a dataset script.
For security reasons, 馃 Datasets have disabled running dataset loading scripts by default, and you have to pass `trust_remote_code=True` to load datasets that require running a dataset script.

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions docs/source/load_hub.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Certain datasets repositories contain a loading script with the Python code used
Those datasets are generally exported to Parquet by Hugging Face, so that 馃 Datasets can load the dataset fast and without running a loading script.

Even if a Parquet export is not available, you can still use any dataset with Python code in its repository with `load_dataset`.
All files and code uploaded to the Hub are scanned for malware (refer to the Hub security documentation for more information), but you should still review the dataset loading scripts and authors to avoid executing malicious code on your machine. You should set `trust_remote_code=True` to use a dataset with a loading script, or you will get a warning:
All files and code uploaded to the Hub are scanned for malware (refer to the Hub security documentation for more information), but you should still review the dataset loading scripts and authors to avoid executing malicious code on your machine. You should set `trust_remote_code=True` to use a dataset with a loading script, or you will get an error:

```py
>>> from datasets import get_dataset_config_names, get_dataset_split_names, load_dataset
Expand All @@ -120,6 +120,6 @@ All files and code uploaded to the Hub are scanned for malware (refer to the Hub

<Tip warning=true>

In the next major release, the new safety features of 馃 Datasets will disable running dataset loading scripts by default, and you will have to pass `trust_remote_code=True` to load datasets that require running a dataset script.
For security reasons, 馃 Datasets have disabled running dataset loading scripts by default, and you have to pass `trust_remote_code=True` to load datasets that require running a dataset script.

</Tip>

0 comments on commit 931df22

Please sign in to comment.