Download test2.py from wk12k/test: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/wk12k/test/resolve/main/test2.py
- Command line
-
hf download hf://wk12k/test/test2.py
-
curl -L -o test2.py https://huggingface.co/wk12k/test/resolve/main/test2.py
458 Bytes
| from diffusers import DiffusionPipeline | |
| from huggingface_hub import hf_hub_download | |
| import joblib | |
| REPO_ID = "https://huggingface.co/wk12k/test" | |
| FILENAME = "sklearn_model.joblib" | |
| pipe = DiffusionPipeline.from_pretrained("OnomaAIResearch/Illustrious-xl-early-release-v0") | |
| prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" | |
| image = pipe(prompt).images[0] | |
| model = image( | |
| hf_hub_download(repo_id=REPO_ID, filename=FILENAME) | |
| ) |