helloworld-S commited on
Commit
e4da984
·
verified ·
1 Parent(s): 94cf4d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -304,7 +304,7 @@ def generate_image(
304
  def create_image_input(index, open=True, indexs_state=None):
305
  accordion_state = gr.State(open)
306
  with gr.Column():
307
- with gr.Accordion(f"Input Image {index + 1}", open=accordion_state.value) as accordion:
308
  image = gr.Image(type="filepath", label=f"Image {index + 1}")
309
  caption = gr.Textbox(label=f"Caption {index + 1}", value="")
310
  id_ip_checkbox = gr.Checkbox(value=False, label=f"ID or not {index + 1}", visible=True)
 
304
  def create_image_input(index, open=True, indexs_state=None):
305
  accordion_state = gr.State(open)
306
  with gr.Column():
307
+ with gr.Accordion(f"Input Image {index + 1}", open=accordion_state) as accordion:
308
  image = gr.Image(type="filepath", label=f"Image {index + 1}")
309
  caption = gr.Textbox(label=f"Caption {index + 1}", value="")
310
  id_ip_checkbox = gr.Checkbox(value=False, label=f"ID or not {index + 1}", visible=True)