mirror of
https://github.com/nod-ai/AMD-SHARK-Studio.git
synced 2026-04-03 03:00:17 -04:00
[Web] Randomize seed to -1 (#1176)
This commit is contained in:
@@ -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)")
|
||||
|
||||
|
||||
@@ -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)")
|
||||
|
||||
|
||||
@@ -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)")
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user