ospanbatyr
commited on
Commit
•
6fc4d46
1
Parent(s):
7e25dd9
Update audiocaps.py
Browse files1. Fixed a typo, atasets --> datasets
2. Removed the task_templates keyword. The task templates keyword threw 'TypeError: DatasetInfo.__init__() got an unexpected keyword argument 'task_templates'' error
- audiocaps.py +1 -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 |
-
"captions":
|
53 |
}
|
54 |
),
|
55 |
name="audiocaps",
|
@@ -66,7 +66,6 @@ class AudioCaps(datasets.GeneratorBasedBuilder):
|
|
66 |
supervised_keys=None,
|
67 |
homepage="",
|
68 |
citation="",
|
69 |
-
task_templates=None,
|
70 |
)
|
71 |
|
72 |
def _split_generators(self, dl_manager):
|
|
|
49 |
{
|
50 |
"file": datasets.Value("string"),
|
51 |
"audio": datasets.Audio(sampling_rate=None),
|
52 |
+
"captions": datasets.Sequence(datasets.Value("string")),
|
53 |
}
|
54 |
),
|
55 |
name="audiocaps",
|
|
|
66 |
supervised_keys=None,
|
67 |
homepage="",
|
68 |
citation="",
|
|
|
69 |
)
|
70 |
|
71 |
def _split_generators(self, dl_manager):
|