Yehor commited on
Commit
62c9046
1 Parent(s): 295920a

Delete add_audio_field.py

Browse files
Files changed (1) hide show
  1. add_audio_field.py +0 -15
add_audio_field.py DELETED
@@ -1,15 +0,0 @@
1
- from datasets import load_dataset, Audio
2
-
3
- dataset = load_dataset('json', data_files="train.jsonl")
4
- print(dataset)
5
-
6
- dataset_audio = dataset.cast_column(
7
- "audio", Audio(sampling_rate=48_000, mono=True, decode=True)
8
- )
9
- print(dataset_audio)
10
-
11
- train_set = dataset_audio['train']
12
-
13
- train_set.to_parquet("train.parquet")
14
-
15
- print(train_set[1])