File size: 395 Bytes
034cb04 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import os
from huggingface_hub import upload_file
repo_id = "PeterJinGo/wiki-18-e5-index"
path = "/home/peterjin/mnt/index/wiki-18"
for file in ["part_aa", "part_ab"]:
upload_file(
path_or_fileobj=os.path.join(path, file), # File path
path_in_repo=file, # Destination filename in the repo
repo_id=repo_id, # Your dataset repo ID
repo_type="dataset"
)
|