helloworld-S commited on
Commit
cd0606d
·
verified ·
1 Parent(s): 50a1cce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -147,7 +147,7 @@ def open_accordion_on_example_selection(*args):
147
  else:
148
  print(f"close accordions {i}")
149
  outputs.append(False)
150
- print(outputs)
151
  return outputs
152
 
153
  @spaces.GPU
@@ -344,7 +344,7 @@ def merge_instances(orig_img, indices, ins_bboxes, ins_images):
344
 
345
 
346
  def change_accordion(at: bool, index: int, state: list):
347
- print(at, state)
348
  indexs = state
349
  if at:
350
  if index not in indexs:
@@ -355,7 +355,7 @@ def change_accordion(at: bool, index: int, state: list):
355
 
356
  # 确保 indexs 是有序的
357
  indexs.sort()
358
- print(indexs)
359
  return gr.Accordion(open=at), indexs
360
 
361
  def update_inputs(is_open, index, state: list):
@@ -369,7 +369,7 @@ def update_inputs(is_open, index, state: list):
369
 
370
  # 确保 indexs 是有序的
371
  indexs.sort()
372
- print(indexs)
373
  return indexs, is_open
374
 
375
  if __name__ == "__main__":
 
147
  else:
148
  print(f"close accordions {i}")
149
  outputs.append(False)
150
+ print("Setup all accordions", outputs)
151
  return outputs
152
 
153
  @spaces.GPU
 
344
 
345
 
346
  def change_accordion(at: bool, index: int, state: list):
347
+ print("change_accordion", index, at, state)
348
  indexs = state
349
  if at:
350
  if index not in indexs:
 
355
 
356
  # 确保 indexs 是有序的
357
  indexs.sort()
358
+ print("After changed", indexs)
359
  return gr.Accordion(open=at), indexs
360
 
361
  def update_inputs(is_open, index, state: list):
 
369
 
370
  # 确保 indexs 是有序的
371
  indexs.sort()
372
+ print("After update input", indexs)
373
  return indexs, is_open
374
 
375
  if __name__ == "__main__":