Edmon02 commited on
Commit
662e94c
1 Parent(s): 503db74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -14,15 +14,15 @@ _CITATION = """
14
  @inproceedings{}
15
  """
16
 
17
- _HOMEPAGE = "https://github.com/facebookresearch/voxpopuli"
18
 
19
- _LICENSE = "CC0, also see https://www.europarl.europa.eu/legal-notice/en/"
20
 
21
  _ASR_LANGUAGES = [
22
  "hy"
23
  ]
24
  _ASR_ACCENTED_LANGUAGES = [
25
- "en_accented"
26
  ]
27
 
28
  _LANGUAGES = _ASR_LANGUAGES + _ASR_ACCENTED_LANGUAGES
@@ -87,10 +87,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
87
  audio_paths = dl_manager.download(audio_urls)
88
 
89
  local_extracted_audio_paths = (
90
- dl_manager.extract(audio_paths) if not dl_manager.is_streaming else
91
- {
92
- split: {lang: [None] * len(audio_paths[split]) for lang in self.config.languages} for split in splits
93
- }
94
  )
95
 
96
  return [
@@ -98,7 +95,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
98
  name=datasets.Split.TRAIN,
99
  gen_kwargs={
100
  "audio_archives": {
101
- lang: [dl_manager.iter_archive(archive) for archive in lang_archives]
102
  for lang_archives in audio_paths["train"].items()
103
  },
104
  "local_extracted_archives_paths": local_extracted_audio_paths["train"],
@@ -109,7 +106,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
109
  name=datasets.Split.VALIDATION,
110
  gen_kwargs={
111
  "audio_archives": {
112
- lang: [dl_manager.iter_archive(archive) for archive in lang_archives]
113
  for lang_archives in audio_paths["dev"].items()
114
  },
115
  "local_extracted_archives_paths": local_extracted_audio_paths["dev"],
@@ -120,7 +117,7 @@ class HySpeech(datasets.GeneratorBasedBuilder):
120
  name=datasets.Split.TEST,
121
  gen_kwargs={
122
  "audio_archives": {
123
- lang: [dl_manager.iter_archive(archive) for archive in lang_archives]
124
  for lang_archives in audio_paths["test"].items()
125
  },
126
  "local_extracted_archives_paths": local_extracted_audio_paths["test"],
 
14
  @inproceedings{}
15
  """
16
 
17
+ _HOMEPAGE = ""
18
 
19
+ _LICENSE = ""
20
 
21
  _ASR_LANGUAGES = [
22
  "hy"
23
  ]
24
  _ASR_ACCENTED_LANGUAGES = [
25
+ ""
26
  ]
27
 
28
  _LANGUAGES = _ASR_LANGUAGES + _ASR_ACCENTED_LANGUAGES
 
87
  audio_paths = dl_manager.download(audio_urls)
88
 
89
  local_extracted_audio_paths = (
90
+ dl_manager.extract(audio_paths)
 
 
 
91
  )
92
 
93
  return [
 
95
  name=datasets.Split.TRAIN,
96
  gen_kwargs={
97
  "audio_archives": {
98
+ 'hy': [dl_manager.iter_archive(archive) for archive in lang_archives]
99
  for lang_archives in audio_paths["train"].items()
100
  },
101
  "local_extracted_archives_paths": local_extracted_audio_paths["train"],
 
106
  name=datasets.Split.VALIDATION,
107
  gen_kwargs={
108
  "audio_archives": {
109
+ 'hy': [dl_manager.iter_archive(archive) for archive in lang_archives]
110
  for lang_archives in audio_paths["dev"].items()
111
  },
112
  "local_extracted_archives_paths": local_extracted_audio_paths["dev"],
 
117
  name=datasets.Split.TEST,
118
  gen_kwargs={
119
  "audio_archives": {
120
+ 'hy': [dl_manager.iter_archive(archive) for archive in lang_archives]
121
  for lang_archives in audio_paths["test"].items()
122
  },
123
  "local_extracted_archives_paths": local_extracted_audio_paths["test"],