Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 77 |
with gr.Column(elem_id="col-container"):
|
| 78 |
gr.Markdown(f"""
|
| 79 |
# Align-your-steps
|
| 80 |
-
Unnoficial demo for the official diffusers implementation of [Align your Steps](https://research.nvidia.com/labs/toronto-ai/AlignYourSteps/) by NVIDIA
|
| 81 |
""")
|
| 82 |
|
| 83 |
with gr.Row():
|
|
@@ -120,8 +120,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 120 |
step=1,
|
| 121 |
value=8,
|
| 122 |
)
|
| 123 |
-
|
| 124 |
-
|
| 125 |
fn = run,
|
| 126 |
inputs = [prompt, num_inference_steps, seed, negative_prompt, randomize_seed],
|
| 127 |
outputs = [result, seed]
|
|
|
|
| 77 |
with gr.Column(elem_id="col-container"):
|
| 78 |
gr.Markdown(f"""
|
| 79 |
# Align-your-steps
|
| 80 |
+
Unnoficial demo for the official diffusers implementation of the [Align your Steps](https://research.nvidia.com/labs/toronto-ai/AlignYourSteps/) scheduler by NVIDIA
|
| 81 |
""")
|
| 82 |
|
| 83 |
with gr.Row():
|
|
|
|
| 120 |
step=1,
|
| 121 |
value=8,
|
| 122 |
)
|
| 123 |
+
gr.on(
|
| 124 |
+
[run_button.click, prompt.submit, negative_prompt.submit],
|
| 125 |
fn = run,
|
| 126 |
inputs = [prompt, num_inference_steps, seed, negative_prompt, randomize_seed],
|
| 127 |
outputs = [result, seed]
|