from huggingface_hub import HfApi api = HfApi() api.upload_folder( folder_path="./", repo_id="Bdyskov/Mesh2Face", repo_type="dataset", run_as_future=False # 强制同步执行,避免异步堆积内存 )