Download virgo_root/hf_upload.py from matCercola18/DiffusionControl: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/matCercola18/DiffusionControl/resolve/main/virgo_root/hf_upload.py
- Command line
-
hf download hf://matCercola18/DiffusionControl/virgo_root/hf_upload.py
-
curl -L -o hf_upload.py https://huggingface.co/matCercola18/DiffusionControl/resolve/main/virgo_root/hf_upload.py
370 Bytes
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| repo = "matCercola18/DiffusionControl" | |
| api.update_repo_settings(repo, private=False) | |
| print("visibility: public", flush=True) | |
| api.upload_large_folder(repo_id=repo, repo_type="model", | |
| folder_path="/home/cercola/matte_server/hf_stage_DiffusionControl", num_workers=4) | |
| print("UPLOAD DONE", flush=True) | |