qanastek commited on
Commit
73f79ba
·
verified ·
1 Parent(s): 7d1fe3f

Upload 12 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:1f3383ba8f79d6537d7c4a24a2e8cf54555739e192c7611e263b41ed48538f20
3
- size 2300
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a60638ab66e5a1f33de86767aaa7234d55d9b3749645c45a6822cdfc001334c5
3
+ size 72285317