Spaces:
Runtime error
Runtime error
Yjiggfghhjnjj
commited on
Commit
•
7e8b99c
1
Parent(s):
503dd68
Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ with gr.Blocks() as demo:
|
|
184 |
gr.Markdown("## One step SDXL comparison 🦶")
|
185 |
gr.Markdown('Compare SDXL variants and distillations able to generate images in a single diffusion step')
|
186 |
prompt = gr.Textbox(label="Prompt")
|
187 |
-
|
188 |
with gr.Accordion("Advanced options", open=False):
|
189 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
190 |
negative_prompt = gr.Text(
|
@@ -265,7 +265,7 @@ with gr.Blocks() as demo:
|
|
265 |
triggers=[
|
266 |
prompt.submit,
|
267 |
negative_prompt.submit,
|
268 |
-
|
269 |
],
|
270 |
fn=run_comparison,
|
271 |
inputs=[
|
@@ -297,4 +297,5 @@ with gr.Blocks() as demo:
|
|
297 |
cache_examples=False,
|
298 |
run_on_click=True
|
299 |
)
|
300 |
-
|
|
|
|
184 |
gr.Markdown("## One step SDXL comparison 🦶")
|
185 |
gr.Markdown('Compare SDXL variants and distillations able to generate images in a single diffusion step')
|
186 |
prompt = gr.Textbox(label="Prompt")
|
187 |
+
run_button = gr.Button("Run")
|
188 |
with gr.Accordion("Advanced options", open=False):
|
189 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
190 |
negative_prompt = gr.Text(
|
|
|
265 |
triggers=[
|
266 |
prompt.submit,
|
267 |
negative_prompt.submit,
|
268 |
+
run_button.click,
|
269 |
],
|
270 |
fn=run_comparison,
|
271 |
inputs=[
|
|
|
297 |
cache_examples=False,
|
298 |
run_on_click=True
|
299 |
)
|
300 |
+
if __name__ == "__main__":
|
301 |
+
demo.queue(max_size=20).launch(show_api=False, debug=False)
|