File size: 232 Bytes
3dd87e8
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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",
)