# 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", | |
) |