Datasets:
Upload 11 files
Browse files- convert_to_parquet.py +1 -3
- data/train-00000-of-00001.parquet +2 -2
- test_dataset.py +0 -3
convert_to_parquet.py
CHANGED
|
@@ -14,7 +14,6 @@ LICENSE = "CC BY-NC-SA 4.0"
|
|
| 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,8 +39,7 @@ def dataset_generator():
|
|
| 40 |
audio_bytes = audio_file.read()
|
| 41 |
|
| 42 |
yield {
|
| 43 |
-
"audio": {"path":
|
| 44 |
-
"file_path": audio_path,
|
| 45 |
"label": row["label"],
|
| 46 |
"description": row["description"]
|
| 47 |
}
|
|
|
|
| 14 |
# Define features
|
| 15 |
features = Features({
|
| 16 |
"audio": Audio(sampling_rate=16000),
|
|
|
|
| 17 |
"label": Value("string"),
|
| 18 |
"description": Value("string"),
|
| 19 |
})
|
|
|
|
| 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 |
}
|
data/train-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c10977e7bba259991f7e305deb1197540e50aa7a016549cb7bbe13e0ce105642
|
| 3 |
+
size 2066
|
test_dataset.py
CHANGED
|
@@ -21,6 +21,3 @@ print(ds.features)
|
|
| 21 |
print("\nFirst Example:")
|
| 22 |
item = ds[0]
|
| 23 |
print(item)
|
| 24 |
-
|
| 25 |
-
print("\nChecking file_path:")
|
| 26 |
-
print(f"File Path: {item['file_path']}")
|
|
|
|
| 21 |
print("\nFirst Example:")
|
| 22 |
item = ds[0]
|
| 23 |
print(item)
|
|
|
|
|
|
|
|
|