Commit
·
84e00a8
1
Parent(s):
d24c094
Update asr-sample.py
Browse files- asr-sample.py +1 -1
asr-sample.py
CHANGED
|
@@ -156,7 +156,7 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
| 156 |
for transcript in transcripts:
|
| 157 |
audio = {"path": transcript["file"], "bytes": audio_data[transcript["id"]]}
|
| 158 |
|
| 159 |
-
yield key, {"audio":
|
| 160 |
key += 1
|
| 161 |
audio_data = {}
|
| 162 |
transcripts = []
|
|
|
|
| 156 |
for transcript in transcripts:
|
| 157 |
audio = {"path": transcript["file"], "bytes": audio_data[transcript["id"]]}
|
| 158 |
|
| 159 |
+
yield key, {"audio": audio, **transcript}
|
| 160 |
key += 1
|
| 161 |
audio_data = {}
|
| 162 |
transcripts = []
|