Skip to content

Commit 95506f4

Browse files
authored
Add files via upload
1 parent ad2d0d1 commit 95506f4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

discovermidi/search_and_filter.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# !pip install matplotlib
6565
# !pip install midirenderer
6666
# !pip install mididoctor
67-
# !pip install numpy==1.24.4
67+
# !pip install numpy==1.26.4
6868
#
6969
###################################################################################
7070
###################################################################################
@@ -3454,7 +3454,8 @@ def parallel_extract(tar_path: str = './Discover-MIDI-Dataset/Discover-MIDI-Data
34543454
def download_dataset(repo_id='projectlosangeles/Discover-MIDI-Dataset',
34553455
filename='Discover-MIDI-Dataset-CC-BY-NC-SA.tar.gz',
34563456
local_dir='./Discover-MIDI-Dataset/',
3457-
verbose=True
3457+
verbose=True,
3458+
**kwargs
34583459
):
34593460

34603461
"""Download the Discover MIDI Dataset archive from the Hugging Face Hub.
@@ -3477,6 +3478,8 @@ def download_dataset(repo_id='projectlosangeles/Discover-MIDI-Dataset',
34773478
Local directory where the downloaded file will be stored or cached.
34783479
The directory will be created by the underlying `hf_hub_download` if
34793480
necessary. Default: `'./Discover-MIDI-Dataset/'`.
3481+
kwargs : dict, optional
3482+
Additional args for hf_hub_download function
34803483
34813484
Returns
34823485
-------
@@ -3512,7 +3515,8 @@ def download_dataset(repo_id='projectlosangeles/Discover-MIDI-Dataset',
35123515
result = hf_hub_download(repo_id=repo_id,
35133516
repo_type='dataset',
35143517
filename=filename,
3515-
local_dir=local_dir
3518+
local_dir=local_dir,
3519+
**kwargs
35163520
)
35173521

35183522
print('=' * 70)

0 commit comments

Comments
 (0)