Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
|
78 |
height = gr.Slider(label="Height", minimum=512, maximum=1280, step=8, value=1024)
|
79 |
scales = gr.Slider(label="Guidance", minimum=3.5, maximum=7, step=0.1, value=3.5)
|
80 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, step=1, value=4)
|
81 |
-
seed = gr.Slider(label="Seeds", minimum=-1, maximum=MAX_SEED, step=1, value
|
82 |
nums = gr.Slider(label="Image Numbers", minimum=1, maximum=4, step=1, value=1)
|
83 |
sendBtn.click(fn=generate_image, inputs=[prompt, width, height, scales, steps, seed, nums], outputs=[img, seed])
|
84 |
prompt.submit(fn=generate_image, inputs=[prompt, width, height, scales, steps, seed, nums], outputs=[img, seed])
|
|
|
78 |
height = gr.Slider(label="Height", minimum=512, maximum=1280, step=8, value=1024)
|
79 |
scales = gr.Slider(label="Guidance", minimum=3.5, maximum=7, step=0.1, value=3.5)
|
80 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, step=1, value=4)
|
81 |
+
seed = gr.Slider(label="Seeds", minimum=-1, maximum=MAX_SEED, step=1, value=0)
|
82 |
nums = gr.Slider(label="Image Numbers", minimum=1, maximum=4, step=1, value=1)
|
83 |
sendBtn.click(fn=generate_image, inputs=[prompt, width, height, scales, steps, seed, nums], outputs=[img, seed])
|
84 |
prompt.submit(fn=generate_image, inputs=[prompt, width, height, scales, steps, seed, nums], outputs=[img, seed])
|