File size: 553 Bytes
b8877ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from huggingface_hub import create_repo, upload_folder
import os

ORG_REPO = "basimazam/safe-diffusion-guidance"  

def main():
    create_repo(ORG_REPO, repo_type="model", exist_ok=True)
    upload_folder(
        repo_id=ORG_REPO,
        folder_path=".",  # current folder
        repo_type="model",
        ignore_patterns=[".git/*", "outputs/*", "tests/*__pycache__*"]
    )
    print(f"Uploaded to https://huggingface.co/{ORG_REPO}")

if __name__ == "__main__":
    assert os.path.exists("safe_diffusion_guidance.py")
    main()