File size: 510 Bytes
6a4bf8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# from huggingface_hub import snapshot_download
# if __name__ == "__main__":
# print("Downloading OpenOAT dataset...")
# snapshot_download(
# repo_id="OpenTO/OpenOAT",
# repo_type="dataset",
# local_dir="."
# )
# print("Download complete.")
# upload folder
from huggingface_hub import HfApi
api = HfApi()
api.upload_folder(
folder_path=".",
path_in_repo=".",
repo_id="OpenTO/OpenOAT",
repo_type="dataset",
commit_message="Updated Test Data",
) |