Skip to content

Commit

Permalink
🐛 Fix minor bug in speech_recognition_dataset.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arxyzan committed Feb 5, 2024
1 parent b37cd26 commit cdea95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hezar/data/datasets/speech_recognition_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, config: SpeechRecognitionDatasetConfig, split=None, **kwargs)
)

def _load(self, split):
data = load_from_disk(self.config.path)[split]
data = load_dataset(self.config.path, split=split)
data = data.cast_column(self.config.audio_column, Audio(sampling_rate=self.config.sampling_rate))
return data

Expand Down

0 comments on commit cdea95d

Please sign in to comment.