Skip to content

Commit 74c1063

Browse files
kylesayrsdsikka
andauthored
[Examples] Remote trust_remote_code from people's speech dataset (#1654)
## Purpose ## * Remove `trust_remote_code` option from peoples_speech dataset loading in whisper example * Squelch `datasets` warning ``` `trust_remote_code` is not supported anymore. Please check that the Hugging Face dataset 'MLCommons/peoples_speech' isn't based on a loading script and remove `trust_remote_code`. If the dataset is based on a loading script, please ask the dataset author to remove it and convert it to a standard format like Parquet. ``` ## Background ## As of [datasets==4.0.0](https://github.com/huggingface/datasets/releases/tag/4.0.0), datasets with remote code are no longer supported ## Changes ## * Remove `trust_remote_code_data` from data loading in whisper example Signed-off-by: Kyle Sayers <[email protected]> Co-authored-by: Dipika Sikka <[email protected]>
1 parent 7f931c1 commit 74c1063

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/multimodal_audio/whisper_example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
DATASET_ID,
3232
DATASET_SUBSET,
3333
split=f"{DATASET_SPLIT}[:{NUM_CALIBRATION_SAMPLES}]",
34-
trust_remote_code=True,
3534
)
3635

3736

0 commit comments

Comments
 (0)