AMchat / push.py
duantanghui's picture
Upload folder using huggingface_hub
3dd87e8 verified
raw
history blame contribute delete
232 Bytes
from huggingface_hub import HfApi
import os
token = "" # 替换为您的 Token
api = HfApi(token=os.getenv("HF_TOKEN"))
api.upload_folder(
folder_path="./",
repo_id="duantanghui/AMchat",
repo_type="model",
)