File size: 425 Bytes
c62ffaf
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# See https://huggingface.co/docs/datasets/audio_dataset
from datasets import load_dataset

# Upload the down_on dataset to huggingfacehub

# This magically does the right thing to create the dataset, including
# setting the label names and IDs.
ds = load_dataset("audiofolder", data_dir="down_on/data")

from huggingface_hub import login
login()
ds.push_to_hub("MatsRooth/down_on",private=False,embed_external_files=True)