Robust_vlm / upload /upload.py
Yaning1001's picture
Add files using upload-large-folder tool
64470b3 verified
from huggingface_hub import HfApi
# 初始化 API 客户端
api = HfApi()
# 设置参数/
repo_id = "Yaning1001/Robust_vlm"
repo_type = "model"
folder_path = "/home/yiren/new_ssd/ReWeighting_VLMs/"
# token = "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" # 替换为你的 Hugging Face API Token
# 调用上传方法
api.upload_large_folder(
repo_id=repo_id,
repo_type=repo_type,
folder_path=folder_path,
)