Spaces:
Running
Running
Download upload.py from divAIne/busy-module-audio: direct link, hf CLI and curl.
- Browser
- Download file 820 Bytes
-
https://huggingface.co/spaces/divAIne/busy-module-audio/resolve/main/upload.py
- Command line
-
hf download hf://spaces/divAIne/busy-module-audio/upload.py
-
curl -L -o upload.py https://huggingface.co/spaces/divAIne/busy-module-audio/resolve/main/upload.py
820 Bytes
| """ | |
| Upload audio endpoint to HF Spaces | |
| """ | |
| from huggingface_hub import HfApi | |
| import sys | |
| try: | |
| api = HfApi() | |
| print("Uploading audio endpoint to HF Spaces...") | |
| print("This may take 1-2 minutes...") | |
| api.upload_folder( | |
| folder_path=".", | |
| repo_id="divAIne/busy-module-audio", | |
| repo_type="space", | |
| ) | |
| print("\n" + "="*60) | |
| print("[OK] Upload successful!") | |
| print("="*60) | |
| print("\nSpace URL: https://huggingface.co/spaces/divAIne/busy-module-audio") | |
| print("API URL: https://divAIne-busy-module-audio.hf.space") | |
| print("\nThe space will rebuild now (2-5 minutes).") | |
| print("Check logs at: https://huggingface.co/spaces/divAIne/busy-module-audio/logs") | |
| except Exception as e: | |
| print(f"Error: {e}") | |
| sys.exit(1) | |