Skip to content

Commit

Permalink
Fix the script based mock downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Oct 18, 2024
1 parent a03ff26 commit 1c61eaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion datasets/flwr_datasets/mock_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,11 @@ def _load_mocked_dataset_by_partial_download(
The dataset with the requested samples.
"""
dataset = datasets.load_dataset(
dataset_name, name=subset_name, split=split_name, streaming=True
dataset_name,
name=subset_name,
split=split_name,
streaming=True,
trust_remote_code=True,
)
dataset_list = []
# It's a list of dict such that each dict represent a single sample of the dataset
Expand Down

0 comments on commit 1c61eaa

Please sign in to comment.