Spaces:
Runtime error
Runtime error
Commit
•
e34abbe
1
Parent(s):
1aa849a
typo
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ with gr.Blocks(css=css) as demo:
|
|
133 |
inputs = [prompt]
|
134 |
)
|
135 |
gr.on(
|
136 |
-
|
137 |
fn = infer,
|
138 |
inputs = [prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
139 |
outputs = [result, seed]
|
|
|
133 |
inputs = [prompt]
|
134 |
)
|
135 |
gr.on(
|
136 |
+
triggers=[run_button.click, prompt.submit],
|
137 |
fn = infer,
|
138 |
inputs = [prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
139 |
outputs = [result, seed]
|