File size: 475 Bytes
defb4d0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from huggingface_hub import Repository, HfApi
# # Initialize repository
# repo = Repository(
# local_dir="/home/duyht/ShotXRetouch",
# clone_from="DuySota/retouch"
# )
# # Add, commit, and push files
# repo.git_add(auto_lfs_track=True)
# repo.git_commit("Initial commit")
# repo.git_push()
# Alternatively, you can use the HfApi for more granular control
api = HfApi()
api.upload_folder(
repo_id="DuySota/retouch",
folder_path="/home/duyht/ShotXRetouch"
)
|