DemiPoto commited on
Commit
8aee81a
·
verified ·
1 Parent(s): b5bee43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -380,7 +380,10 @@ def fonc_start(id_session,id_module):
380
  num_task_undo+=1
381
  print(f"\n {num_task_undo} tasks undo\n")
382
  return result
383
-
 
 
 
384
  def make_me():
385
  with gr.Column():
386
  id_session=gr.Number(visible=False,value=0)
@@ -470,7 +473,8 @@ def make_me():
470
  for o,i in zip(outputs,id_modules):
471
  #o.change(fonc_start,[id_session,i],[o])
472
  #button_start.click(lambda : gr.Image(None),[],[o])
473
- button_start.click(lambda o: print(o),[o],[])
 
474
  gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
475
  interactive=False, show_share_button=True, container=True, format="png",
476
  preview=True, object_fit="cover",columns=4,rows=4)
 
380
  num_task_undo+=1
381
  print(f"\n {num_task_undo} tasks undo\n")
382
  return result
383
+
384
+ def test_start():
385
+ return gr.Image(None)
386
+
387
  def make_me():
388
  with gr.Column():
389
  id_session=gr.Number(visible=False,value=0)
 
473
  for o,i in zip(outputs,id_modules):
474
  #o.change(fonc_start,[id_session,i],[o])
475
  #button_start.click(lambda : gr.Image(None),[],[o])
476
+ gen_event = gr.on(triggers=[button_start.click], fn=test_start,inputs=[], outputs=[o])
477
+
478
  gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
479
  interactive=False, show_share_button=True, container=True, format="png",
480
  preview=True, object_fit="cover",columns=4,rows=4)