File size: 442 Bytes
2b516e0
 
 
 
 
 
 
 
 
93232f5
2b516e0
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from huggingface_hub import snapshot_download
import os

def download_model(local_dir):
    repo_id = "waytan22/SongGeneration-LeVo"

    downloaded_path = snapshot_download(
        repo_id=repo_id,
        local_dir=local_dir,
        revision="3814ef3",
        token=os.environ.get("HF_TOKEN"), 
        ignore_patterns=['.git*']
    )
    print(f"File downloaded to:{downloaded_path}")

if __name__ == '__main__':
    download_model('.')