Spaces:
Build error
Build error
Download download.py from NeoPy/SongGeneration: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/NeoPy/SongGeneration/resolve/main/download.py
- Command line
-
hf download hf://spaces/NeoPy/SongGeneration/download.py
-
curl -L -o download.py https://huggingface.co/spaces/NeoPy/SongGeneration/resolve/main/download.py
436 Bytes
| from huggingface_hub import snapshot_download | |
| import os | |
| def download_model(local_dir): | |
| repo_id = "tencent/SongGeneration" | |
| downloaded_path = snapshot_download( | |
| repo_id=repo_id, | |
| local_dir=local_dir, | |
| revision="0c80d30", | |
| token=os.environ.get("HF_TOKEN"), | |
| ignore_patterns=['.git*'] | |
| ) | |
| print(f"File downloaded to:{downloaded_path}") | |
| if __name__ == '__main__': | |
| download_model('.') |