Update app.py
Browse files
app.py
CHANGED
@@ -191,9 +191,10 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
191 |
strength = gr.Slider(label="PromptStrength", value=100, minimum=0, maximum=100, step=1)
|
192 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1) # Setting the seed to -1 will make it random
|
193 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ 2S a Karras", "DPM2 a Karras", "DPM2 Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "LMS Karras", "PLMS", "UniPC", "UniPC BH2"])
|
194 |
-
|
195 |
-
|
196 |
-
|
|
|
197 |
# Add a button to trigger the image generation
|
198 |
with gr.Row():
|
199 |
text_button = gr.Button("Generate Image 🎨", variant='primary', elem_id="gen-button")
|
|
|
191 |
strength = gr.Slider(label="PromptStrength", value=100, minimum=0, maximum=100, step=1)
|
192 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1) # Setting the seed to -1 will make it random
|
193 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ 2S a Karras", "DPM2 a Karras", "DPM2 Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "LMS Karras", "PLMS", "UniPC", "UniPC BH2"])
|
194 |
+
with gr.Accordion("🫘Seed", open=False):
|
195 |
+
|
196 |
+
...................................................
|
197 |
+
.seed_output = gr.Textbox(label="Seed Used", elem_id="seed-output")
|
198 |
# Add a button to trigger the image generation
|
199 |
with gr.Row():
|
200 |
text_button = gr.Button("Generate Image 🎨", variant='primary', elem_id="gen-button")
|