Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -77,8 +77,8 @@ class GradioDemo:
|
|
77 |
gr.Markdown("# One More Step Demo")
|
78 |
with gr.Row():
|
79 |
with gr.Column():
|
80 |
-
prompt = gr.Textbox(label="Prompt", value="a cat")
|
81 |
-
oms_prompt = gr.Textbox(label="OMS Prompt", value="orange cat")
|
82 |
oms_guidance_scale = gr.Slider(label="OMS Guidance Scale", minimum=1.0, maximum=5.0, value=1.5, step=0.1)
|
83 |
run_button = gr.Button(value="Generate images")
|
84 |
with gr.Accordion("Advanced options", open=False):
|
@@ -89,7 +89,7 @@ class GradioDemo:
|
|
89 |
output_raw = gr.Image(label="SDXL w/ LCM-LoRA w/o OMS ")
|
90 |
output_oms = gr.Image(label="w/ OMS w/o OMS CFG")
|
91 |
with gr.Column(visible=False) as oms_cfg_wd:
|
92 |
-
output_oms_cfg = gr.Image(label=
|
93 |
|
94 |
ips = [prompt, oms_prompt, oms_guidance_scale, num_steps, sd_guidance_scale, seed]
|
95 |
run_button.click(fn=self._inference, inputs=ips, outputs=[output_raw, output_oms, output_oms_cfg, oms_cfg_wd])
|
|
|
77 |
gr.Markdown("# One More Step Demo")
|
78 |
with gr.Row():
|
79 |
with gr.Column():
|
80 |
+
prompt = gr.Textbox(label="Prompt", value="a cat against black ground, studio")
|
81 |
+
oms_prompt = gr.Textbox(label="OMS Prompt", value="an orange cat")
|
82 |
oms_guidance_scale = gr.Slider(label="OMS Guidance Scale", minimum=1.0, maximum=5.0, value=1.5, step=0.1)
|
83 |
run_button = gr.Button(value="Generate images")
|
84 |
with gr.Accordion("Advanced options", open=False):
|
|
|
89 |
output_raw = gr.Image(label="SDXL w/ LCM-LoRA w/o OMS ")
|
90 |
output_oms = gr.Image(label="w/ OMS w/o OMS CFG")
|
91 |
with gr.Column(visible=False) as oms_cfg_wd:
|
92 |
+
output_oms_cfg = gr.Image(label="w/ OMS w/ OMS CFG")
|
93 |
|
94 |
ips = [prompt, oms_prompt, oms_guidance_scale, num_steps, sd_guidance_scale, seed]
|
95 |
run_button.click(fn=self._inference, inputs=ips, outputs=[output_raw, output_oms, output_oms_cfg, oms_cfg_wd])
|