Commit ·
b34c0b9
1
Parent(s): d2be5ee
Update test.py
Browse files
test.py
CHANGED
|
@@ -119,7 +119,7 @@ class TestASR(datasets.GeneratorBasedBuilder):
|
|
| 119 |
_, audio_name = os.path.split(path)
|
| 120 |
if audio_name in metadata:
|
| 121 |
result = dict(metadata[audio_name])
|
| 122 |
-
path = os.path.join(
|
| 123 |
result["audio"] = {"path": path, "bytes":f.read()}
|
| 124 |
yield id_, result
|
| 125 |
id_ +=1
|
|
|
|
| 119 |
_, audio_name = os.path.split(path)
|
| 120 |
if audio_name in metadata:
|
| 121 |
result = dict(metadata[audio_name])
|
| 122 |
+
path = os.path.join('test', path)
|
| 123 |
result["audio"] = {"path": path, "bytes":f.read()}
|
| 124 |
yield id_, result
|
| 125 |
id_ +=1
|