We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
trust_remote_code
1 parent 77f2b14 commit e8aef7fCopy full SHA for e8aef7f
tensorflow_datasets/core/dataset_builders/huggingface_dataset_builder.py
@@ -200,6 +200,7 @@ def __init__(
200
tfds_num_proc: Optional[int] = None,
201
ignore_hf_errors: bool = False,
202
overwrite_version: str | None = None,
203
+ trust_remote_code: bool = False,
204
**config_kwargs,
205
):
206
self._hf_repo_id = hf_repo_id
@@ -210,7 +211,10 @@ def __init__(
210
211
)
212
try:
213
self._hf_builder = hf_datasets.load_dataset_builder(
- self._hf_repo_id, self._hf_config, **self.config_kwargs
214
+ self._hf_repo_id,
215
+ self._hf_config,
216
+ trust_remote_code=trust_remote_code,
217
+ **self.config_kwargs,
218
219
except Exception as e:
220
raise RuntimeError(
0 commit comments