File size: 820 Bytes
c431263
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4e33549
c431263
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""

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)