Notes / down_on_hub.py
MatsRooth's picture
Upload down_on_hub.py with huggingface_hub
c62ffaf
raw
history blame
No virus
425 Bytes
# 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)