Edmon02 commited on
Commit
2da346e
1 Parent(s): 6db1ebe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -12
app.py CHANGED
@@ -7,19 +7,12 @@ import datasets
7
 
8
  _BASE_DATA_DIR = "data/"
9
 
10
- _N_SHARDS_FILE = _BASE_DATA_DIR + "n_files.json"
11
-
12
  _AUDIO_ARCHIVE_PATH = _BASE_DATA_DIR + "{split}/{split}_dataset.tar.gz"
13
 
14
  _METADATA_PATH = _BASE_DATA_DIR + "{split}.tsv"
15
 
16
-
17
-
18
  class Hyvoxpopuli(datasets.GeneratorBasedBuilder):
19
- """The VoxPopuli dataset."""
20
-
21
- VERSION = datasets.Version("0.0.1") # TODO: version
22
-
23
 
24
  def _info(self):
25
  features = datasets.Features(
@@ -38,10 +31,7 @@ class Hyvoxpopuli(datasets.GeneratorBasedBuilder):
38
  features=features
39
  )
40
 
41
- def _split_generators(self, dl_manager):
42
- n_shards_path = dl_manager.download_and_extract(_N_SHARDS_FILE)
43
- with open(n_shards_path) as f:
44
- n_shards = json.load(f)
45
 
46
  splits = ["train", "dev", "test"]
47
 
 
7
 
8
  _BASE_DATA_DIR = "data/"
9
 
 
 
10
  _AUDIO_ARCHIVE_PATH = _BASE_DATA_DIR + "{split}/{split}_dataset.tar.gz"
11
 
12
  _METADATA_PATH = _BASE_DATA_DIR + "{split}.tsv"
13
 
 
 
14
  class Hyvoxpopuli(datasets.GeneratorBasedBuilder):
15
+ """The HyVoxPopuli dataset."""
 
 
 
16
 
17
  def _info(self):
18
  features = datasets.Features(
 
31
  features=features
32
  )
33
 
34
+ def _split_generators(self, dl_manager):]
 
 
 
35
 
36
  splits = ["train", "dev", "test"]
37