yangwang825
commited on
Commit
•
7e25dd9
1
Parent(s):
3a47fd9
Update audiocaps.py
Browse files- audiocaps.py +2 -2
audiocaps.py
CHANGED
@@ -49,7 +49,7 @@ class AudioCaps(datasets.GeneratorBasedBuilder):
|
|
49 |
{
|
50 |
"file": datasets.Value("string"),
|
51 |
"audio": datasets.Audio(sampling_rate=None),
|
52 |
-
"
|
53 |
}
|
54 |
),
|
55 |
name="audiocaps",
|
@@ -162,7 +162,7 @@ class AudioCaps(datasets.GeneratorBasedBuilder):
|
|
162 |
"id": str(guid),
|
163 |
"file": audio_path,
|
164 |
"audio": audio_path,
|
165 |
-
"
|
166 |
}
|
167 |
|
168 |
|
|
|
49 |
{
|
50 |
"file": datasets.Value("string"),
|
51 |
"audio": datasets.Audio(sampling_rate=None),
|
52 |
+
"captions": atasets.Sequence(datasets.Value("string")),
|
53 |
}
|
54 |
),
|
55 |
name="audiocaps",
|
|
|
162 |
"id": str(guid),
|
163 |
"file": audio_path,
|
164 |
"audio": audio_path,
|
165 |
+
"captions": [caption],
|
166 |
}
|
167 |
|
168 |
|