SR_data / hf_dataset.py
Shilin-LU's picture
Add files using upload-large-folder tool
7b814a6 verified
Raw
History Blame Contribute Delete
380 Bytes
from huggingface_hub import HfApi
api = HfApi()
# 如果仓库不存在,会自动创建;exists_ok=True 可以防止重复创建时报错
api.upload_folder(
folder_path="/Users/shilin/Alibaba/dataset/", # 本地数据集文件夹
repo_id="Shilin-LU/SR_data", # 例如 "johnny/awesome-data"
repo_type="dataset", # 指定为数据集类型
)