Harish Kamath commited on
Commit
039ff9b
·
1 Parent(s): 72587b8

Update fma.py

Browse files
Files changed (1) hide show
  1. fma.py +6 -1
fma.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  dataset_links = {
2
  "metadata": "https://os.unil.cloud.switch.ch/fma/fma_metadata.zip",
3
  "small": "https://os.unil.cloud.switch.ch/fma/fma_small.zip",
@@ -1084,7 +1089,7 @@ class FMADataset(datasets.GeneratorBasedBuilder):
1084
 
1085
  yield track_id, {
1086
  "id": track_id,
1087
- "audio": audio_path,
1088
  **track_metadata,
1089
  **echonest_features,
1090
  }
 
1
+ # Uploaded at: https://huggingface.co/datasets/hkamath-rudra/fma
2
+ # To use:
3
+ # from datasets import load_dataset
4
+ # dataset = load_dataset("hkamath-rudra/fma", "small", streaming=True)
5
+
6
  dataset_links = {
7
  "metadata": "https://os.unil.cloud.switch.ch/fma/fma_metadata.zip",
8
  "small": "https://os.unil.cloud.switch.ch/fma/fma_small.zip",
 
1089
 
1090
  yield track_id, {
1091
  "id": track_id,
1092
+ "audio": {"path": audio_path, "bytes": f.read()},
1093
  **track_metadata,
1094
  **echonest_features,
1095
  }