File size: 458 Bytes
ea9dc1f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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)
) |