from huggingface_hub import HfApi, upload_file import os TOKEN = os.environ["HF_TOKEN"] REPO = "Stanley03/sauti-tts-lightweight" api = HfApi(token=TOKEN) files = [ "lightweight_infer.py", "app.py", "Dockerfile", "requirements.txt", "livekit_agent.py", "README.md", ] for path in files: print(f"Uploading {path}...") upload_file( path_or_fileobj=path, path_in_repo=path, repo_id=REPO, repo_type="space", token=TOKEN, ) print(f" -> {path}") print("All files uploaded.")