Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -216,6 +216,18 @@ with gr.Blocks(css="style.css") as demo:
|
|
216 |
outputs=result,
|
217 |
api_name=False,
|
218 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
run_button.click(
|
220 |
fn=randomize_seed_fn,
|
221 |
inputs=[seed, randomize_seed],
|
|
|
216 |
outputs=result,
|
217 |
api_name=False,
|
218 |
)
|
219 |
+
negative_prompt.submit(
|
220 |
+
fn=randomize_seed_fn,
|
221 |
+
inputs=[seed, randomize_seed],
|
222 |
+
outputs=seed,
|
223 |
+
queue=False,
|
224 |
+
api_name=False,
|
225 |
+
).then(
|
226 |
+
fn=run,
|
227 |
+
inputs=inputs,
|
228 |
+
outputs=result,
|
229 |
+
api_name=False,
|
230 |
+
)
|
231 |
run_button.click(
|
232 |
fn=randomize_seed_fn,
|
233 |
inputs=[seed, randomize_seed],
|