Spaces:
Running
on
Zero
Running
on
Zero
remove run on click
Browse files
app.py
CHANGED
@@ -320,7 +320,8 @@ with gr.Blocks(css=css) as demo:
|
|
320 |
examples=examples,
|
321 |
inputs=[prompt, style_image],
|
322 |
outputs=result,
|
323 |
-
fn=
|
|
|
324 |
)
|
325 |
|
326 |
gr.Markdown("## Disclaimer")
|
@@ -354,7 +355,7 @@ with gr.Blocks(css=css) as demo:
|
|
354 |
negative_prompt.submit,
|
355 |
prompt_2.submit,
|
356 |
negative_prompt_2.submit,
|
357 |
-
run_button.click,
|
358 |
],
|
359 |
fn=randomize_seed_fn,
|
360 |
inputs=[seed, randomize_seed],
|
|
|
320 |
examples=examples,
|
321 |
inputs=[prompt, style_image],
|
322 |
outputs=result,
|
323 |
+
fn=None,
|
324 |
+
run_on_click=False,
|
325 |
)
|
326 |
|
327 |
gr.Markdown("## Disclaimer")
|
|
|
355 |
negative_prompt.submit,
|
356 |
prompt_2.submit,
|
357 |
negative_prompt_2.submit,
|
358 |
+
run_button.click, # Only trigger on Run button click
|
359 |
],
|
360 |
fn=randomize_seed_fn,
|
361 |
inputs=[seed, randomize_seed],
|