File size: 624 Bytes
dcf8942
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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}")