Upload down_on_hub.py with huggingface_hub
Browse files- 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 |
+
|