CoolFace
Modelpublic

diffusers/tools

sourceHugging Facecreativeml-openrail-mupdated 3y agoView on Hugging Face
11likes28downloads
upload_folder.py21 linesDownload Raw Back to root
1#!/usr/bin/env python32from huggingface_hub import HfApi3import sys4 5api = HfApi()6 7 8folder = sys.argv[1]9repo = sys.argv[2]10 11# Upload all the content from the local folder to your remote Space.12# By default, files are uploaded at the root of the repo13api.upload_folder(14    folder_path=folder,15    repo_id=repo,16    path_in_repo="./",17    delete_patterns="*.git*", # Delete all remote text files before18    create_pr=True,19    commit_message="Add diffusers weights"20)21