Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,10 @@ J9_pipe = StableDiffusionXLPipeline.from_pretrained(
|
|
45 |
"RunDiffusion/Juggernaut-XL-v9",
|
46 |
vae=vae,
|
47 |
torch_dtype=torch.float16,
|
|
|
|
|
|
|
|
|
48 |
)
|
49 |
J9_pipe.to("cuda")
|
50 |
|
@@ -110,7 +114,7 @@ examples = ["A dignified beaver wearing glasses, a vest, and colorful neck tie."
|
|
110 |
"A bald eagle made of chocolate powder, mango, and whipped cream"
|
111 |
]
|
112 |
|
113 |
-
with gr.Blocks() as demo:
|
114 |
gr.Markdown("## One step Juggernaut-XL comparison 🦶")
|
115 |
gr.Markdown('Compare Juggernaut-XL variants and distillations able to generate images in a single diffusion step')
|
116 |
prompt = gr.Textbox(label="Prompt")
|
|
|
45 |
"RunDiffusion/Juggernaut-XL-v9",
|
46 |
vae=vae,
|
47 |
torch_dtype=torch.float16,
|
48 |
+
custom_pipeline="lpw_stable_diffusion_xl",
|
49 |
+
use_safetensors=True,
|
50 |
+
add_watermarker=False,
|
51 |
+
variant="fp16",
|
52 |
)
|
53 |
J9_pipe.to("cuda")
|
54 |
|
|
|
114 |
"A bald eagle made of chocolate powder, mango, and whipped cream"
|
115 |
]
|
116 |
|
117 |
+
with gr.Blocks(theme=gr.themes.Base()) as demo:
|
118 |
gr.Markdown("## One step Juggernaut-XL comparison 🦶")
|
119 |
gr.Markdown('Compare Juggernaut-XL variants and distillations able to generate images in a single diffusion step')
|
120 |
prompt = gr.Textbox(label="Prompt")
|