qanastek commited on
Commit
3b8859d
·
verified ·
1 Parent(s): bfc8ed4

Upload 11 files

Browse files
convert_to_parquet.py CHANGED
@@ -14,6 +14,7 @@ LICENSE = "CC BY-NC-SA 4.0"
14
  # Define features
15
  features = Features({
16
  "audio": Audio(sampling_rate=16000),
 
17
  "label": Value("string"),
18
  "description": Value("string"),
19
  })
@@ -39,7 +40,8 @@ def dataset_generator():
39
  audio_bytes = audio_file.read()
40
 
41
  yield {
42
- "audio": {"path": audio_path, "bytes": audio_bytes},
 
43
  "label": row["label"],
44
  "description": row["description"]
45
  }
 
14
  # Define features
15
  features = Features({
16
  "audio": Audio(sampling_rate=16000),
17
+ "file_path": Value("string"),
18
  "label": Value("string"),
19
  "description": Value("string"),
20
  })
 
40
  audio_bytes = audio_file.read()
41
 
42
  yield {
43
+ "audio": {"path": None, "bytes": audio_bytes},
44
+ "file_path": audio_path,
45
  "label": row["label"],
46
  "description": row["description"]
47
  }
data/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c10977e7bba259991f7e305deb1197540e50aa7a016549cb7bbe13e0ce105642
3
- size 2066
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:379ff14161705e1e993d56727af7b69f5a21ed7e72e419cb5e32bfc933320074
3
+ size 56837061