wk12k commited on
Commit
ea9dc1f
·
verified ·
1 Parent(s): f5f05f4

Create test2.py

Browse files
Files changed (1) hide show
  1. test2.py +15 -0
test2.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from diffusers import DiffusionPipeline
2
+ from huggingface_hub import hf_hub_download
3
+ import joblib
4
+
5
+ REPO_ID = "https://huggingface.co/wk12k/test"
6
+ FILENAME = "sklearn_model.joblib"
7
+
8
+ pipe = DiffusionPipeline.from_pretrained("OnomaAIResearch/Illustrious-xl-early-release-v0")
9
+
10
+ prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
11
+ image = pipe(prompt).images[0]
12
+
13
+ model = image(
14
+ hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
15
+ )