Download push_model2hf.py from nekofura/scripting: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/datasets/nekofura/scripting/resolve/main/push_model2hf.py
- Command line
-
hf download hf://datasets/nekofura/scripting/push_model2hf.py
-
curl -L -o push_model2hf.py https://huggingface.co/datasets/nekofura/scripting/resolve/main/push_model2hf.py
397 Bytes
| from huggingface_hub import upload_file | |
| upload_file( | |
| path_or_fileobj="/kaggle/working/stable-diffusion-webui/models/Stable-diffusion/terratopia-clearvae-baked.safetensors", | |
| path_in_repo="baked/terratopia-e1_vae-baked.safetensors", | |
| repo_id="ArielACE/Project_Terra", | |
| repo_type="model", | |
| token="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", | |
| commit_message="Clear VAE Baked", | |
| ) |