mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
up (#14116)
This commit is contained in:
parent
ca2ef7dfcd
commit
70f186f61e
@ -615,7 +615,9 @@ class HubertModelIntegrationTest(unittest.TestCase):
|
||||
|
||||
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
|
||||
# automatic decoding with librispeech
|
||||
speech_samples = ds.sort("id").select(range(num_samples))[:num_samples]["audio"]
|
||||
speech_samples = ds.sort("id").filter(
|
||||
lambda x: x["id"] in [f"1272-141231-000{i}" for i in range(num_samples)]
|
||||
)[:num_samples]["audio"]
|
||||
|
||||
return [x["array"] for x in speech_samples]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user