MatsRooth commited on
Commit
c62ffaf
1 Parent(s): edeb66a

Upload down_on_hub.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. down_on_hub.py +14 -0
down_on_hub.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See https://huggingface.co/docs/datasets/audio_dataset
2
+ from datasets import load_dataset
3
+
4
+ # Upload the down_on dataset to huggingfacehub
5
+
6
+ # This magically does the right thing to create the dataset, including
7
+ # setting the label names and IDs.
8
+ ds = load_dataset("audiofolder", data_dir="down_on/data")
9
+
10
+ from huggingface_hub import login
11
+ login()
12
+ ds.push_to_hub("MatsRooth/down_on",private=False,embed_external_files=True)
13
+
14
+