busy-module-audio / upload.py
EurekaPotato's picture
Upload folder using huggingface_hub
4e33549 verified
raw
history blame contribute delete
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)