[Web] Randomize seed to -1 (#1176)

This commit is contained in:
m68k-fr
2023-03-12 20:42:31 +01:00
committed by GitHub
parent 1b08242aaa
commit b94266d2b9
4 changed files with 4 additions and 4 deletions

View File

@@ -168,7 +168,7 @@ with gr.Blocks(title="Image-to-Image") as img2img_web:
None,
inputs=[],
outputs=[seed],
_js="() => Math.floor(Math.random() * 4294967295)",
_js="() => -1",
)
stable_diffusion = gr.Button("Generate Image(s)")

View File

@@ -171,7 +171,7 @@ with gr.Blocks(title="Inpainting") as inpaint_web:
None,
inputs=[],
outputs=[seed],
_js="() => Math.floor(Math.random() * 4294967295)",
_js="() => -1",
)
stable_diffusion = gr.Button("Generate Image(s)")

View File

@@ -190,7 +190,7 @@ with gr.Blocks(title="Outpainting") as outpaint_web:
None,
inputs=[],
outputs=[seed],
_js="() => Math.floor(Math.random() * 4294967295)",
_js="() => -1",
)
stable_diffusion = gr.Button("Generate Image(s)")

View File

@@ -157,7 +157,7 @@ with gr.Blocks(title="Text-to-Image") as txt2img_web:
None,
inputs=[],
outputs=[seed],
_js="() => Math.floor(Math.random() * 4294967295)",
_js="() => -1",
)
stable_diffusion = gr.Button("Generate Image(s)")
with gr.Accordion(label="Prompt Examples!", open=False):