DigiP-AI commited on
Commit
bb0f758
·
verified ·
1 Parent(s): 010951c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -191,6 +191,9 @@ 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
  # Add a button to trigger the image generation
195
  with gr.Row():
196
  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.Row():
195
+ with gr.Accordion("🫘Seed", open=False):
196
+ seed_output = gr.Textbox(label="Seed Used", elem_id="seed-output")
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")