DigiP-AI commited on
Commit
ef3d6ce
·
verified ·
1 Parent(s): cbb7439

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -190,7 +190,7 @@ with gr.Blocks(theme=theme, css=css) as app:
190
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1) # Setting the seed to -1 will make it random
191
  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"])
192
  with gr.Row():
193
- seed_output = gr.Textbox(label="Seed Used", elem_id="seed-output")
194
 
195
  # Add a button to trigger the image generation
196
  with gr.Row():
@@ -198,7 +198,7 @@ with gr.Blocks(theme=theme, css=css) as app:
198
 
199
  # Image output area to display the generated image
200
  with gr.Row():
201
- image_output = gr.Image(type="pil", label="Image Output", show_share_button=False, elem_id="gallery")
202
  with gr.Row():
203
  clear_prompt =gr.Button("Clear 🗑️",variant="primary", elem_id="clear_button")
204
  clear_prompt.click(lambda: (None, None), None, [text_prompt, image_output], queue=False, show_api=False)
 
190
  seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1) # Setting the seed to -1 will make it random
191
  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"])
192
  with gr.Row():
193
+ seed_output = gr.Textbox(label="Seed Used", elem_id="seed-output")
194
 
195
  # Add a button to trigger the image generation
196
  with gr.Row():
 
198
 
199
  # Image output area to display the generated image
200
  with gr.Row():
201
+ image_output = gr.Image(type="pil", label="Image Output", show_share_button=False, format="png", elem_id="gallery")
202
  with gr.Row():
203
  clear_prompt =gr.Button("Clear 🗑️",variant="primary", elem_id="clear_button")
204
  clear_prompt.click(lambda: (None, None), None, [text_prompt, image_output], queue=False, show_api=False)