multimodalart HF staff commited on
Commit
4a499a4
1 Parent(s): 5378dfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -277,15 +277,15 @@ with gr.Blocks(css=css) as demo:
277
  button.click(lambda:
278
  [gr.update(visible=True),gr.update(visible=True), gr.update(visible=False), gr.update(visible=True), True, None],
279
  None,
280
- [row[counter_add], file_collection[counter_add], buttons_collection[counter_add-1], buttons_collection[counter_add], is_visible[counter_add], file_collection[counter_add]])
281
  else:
282
- button.click(lambda:[gr.update(visible=True),gr.update(visible=True), gr.update(visible=False), True], None, [row[counter_add], file_collection[counter_add], buttons_collection[counter_add-1], is_visible[counter_add]])
283
  counter_add += 1
284
 
285
  counter_delete = 1
286
  for delete_button in delete_collection:
287
  if(counter_delete < len(delete_collection)+1):
288
- delete_button.click(lambda:[gr.update(visible=False),gr.update(visible=False), gr.update(visible=True), False], None, [file_collection[counter_delete], row[counter_delete], buttons_collection[counter_delete-1], is_visible[counter_delete]])
289
  counter_delete += 1
290
 
291
 
 
277
  button.click(lambda:
278
  [gr.update(visible=True),gr.update(visible=True), gr.update(visible=False), gr.update(visible=True), True, None],
279
  None,
280
+ [row[counter_add], file_collection[counter_add], buttons_collection[counter_add-1], buttons_collection[counter_add], is_visible[counter_add], file_collection[counter_add]], queue=False)
281
  else:
282
+ button.click(lambda:[gr.update(visible=True),gr.update(visible=True), gr.update(visible=False), True], None, [row[counter_add], file_collection[counter_add], buttons_collection[counter_add-1], is_visible[counter_add]], queue=False)
283
  counter_add += 1
284
 
285
  counter_delete = 1
286
  for delete_button in delete_collection:
287
  if(counter_delete < len(delete_collection)+1):
288
+ delete_button.click(lambda:[gr.update(visible=False),gr.update(visible=False), gr.update(visible=True), False], None, [file_collection[counter_delete], row[counter_delete], buttons_collection[counter_delete-1], is_visible[counter_delete]]), queue=False
289
  counter_delete += 1
290
 
291