Team Ai
Modelpublic

GooooGLE/testVulModel

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes7downloads
uploadfile.py16 linesDownload Raw Back to root
1from huggingface_hub import Repository2 3# Hugging Face 仓库的 URL (替换为你的实际仓库地址)4repo_url = "https://huggingface.co/GooooGLE/testVulModel"5 6# 需要上传的本地仓库路径7local_repo_path = "./"8 9# 克隆 Hugging Face 仓库到本地路径10repo = Repository(local_dir=local_repo_path, clone_from=repo_url)11 12# 推送所有本地更改到 Hugging Face 仓库(包括大文件)13repo.git_add(auto_lfs_track=True)  # 自动添加大文件到LFS14repo.git_commit("Upload entire repository with large files")15repo.git_push()16