adamelliotfields commited on
Commit
8848a7c
·
verified ·
1 Parent(s): 80a3408

Remove file format dropdown

Browse files
Files changed (1) hide show
  1. app.py +0 -19
app.py CHANGED
@@ -258,12 +258,6 @@ with gr.Blocks(
258
  ],
259
  )
260
  with gr.Row():
261
- file_format = gr.Dropdown(
262
- choices=["png", "jpeg", "webp"],
263
- label="Format",
264
- filterable=False,
265
- value="png",
266
- )
267
  num_images = gr.Dropdown(
268
  choices=list(range(1, 5)),
269
  value=Config.NUM_IMAGES,
@@ -363,19 +357,6 @@ with gr.Blocks(
363
  # Update seed button hover text
364
  seed.change(None, inputs=[seed], outputs=[], js=seed_js)
365
 
366
- # Update image prompts file format
367
- file_format.change(
368
- lambda f: (
369
- gr.Gallery(format=f),
370
- gr.Image(format=f),
371
- gr.Image(format=f),
372
- gr.Image(format=f),
373
- ),
374
- inputs=[file_format],
375
- outputs=[output_images, image_prompt, control_image_prompt, ip_image_prompt],
376
- show_api=False,
377
- )
378
-
379
  # Update width and height on aspect ratio change
380
  aspect_ratio.input(
381
  None,
 
258
  ],
259
  )
260
  with gr.Row():
 
 
 
 
 
 
261
  num_images = gr.Dropdown(
262
  choices=list(range(1, 5)),
263
  value=Config.NUM_IMAGES,
 
357
  # Update seed button hover text
358
  seed.change(None, inputs=[seed], outputs=[], js=seed_js)
359
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  # Update width and height on aspect ratio change
361
  aspect_ratio.input(
362
  None,