| from huggingface_hub import HfApi | |
| # Path to the local file you want to upload | |
| local_path = "beat_english_v0.2.1.zip" | |
| # Path inside the repo (can include subfolders, e.g. "raw/beat_english_v0.2.1.zip") | |
| path_in_repo = "beat_english_v0.2.1.zip" | |
| # Your Hugging Face dataset repo (change if needed) | |
| repo_id = "azatika/beat-english-private" | |
| # The repo type should be 'dataset' | |
| repo_type = "dataset" | |
| api = HfApi() | |
| api.upload_file( | |
| path_or_fileobj=local_path, | |
| path_in_repo=path_in_repo, | |
| repo_id=repo_id, | |
| repo_type=repo_type, | |
| ) | |
| print(f"Uploaded {local_path} to {repo_id}/{path_in_repo}") | |