DemiPoto commited on
Commit
534d742
·
verified ·
1 Parent(s): bacca76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -444,7 +444,8 @@ def make_me():
444
  with gr.Row():
445
  nb_req_simult=gr.Number(50,"Number simultaneous request")
446
  nb_req_simult_max_by_mod=gr.Number(2,"Number max simultaneous request by model")
447
-
 
448
  with gr.Row():
449
  outputs=[]
450
  id_modules=[]
@@ -453,6 +454,7 @@ def make_me():
453
  id_modules.append(gr.Number(i,interactive=False,render=False))
454
  for o,i in zip(outputs,id_modules):
455
  o.change(fonc_start,[id_session,i],[o])
 
456
  gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
457
  interactive=False, show_share_button=True, container=True, format="png",
458
  preview=True, object_fit="cover",columns=4,rows=4)
 
444
  with gr.Row():
445
  nb_req_simult=gr.Number(50,"Number simultaneous request")
446
  nb_req_simult_max_by_mod=gr.Number(2,"Number max simultaneous request by model")
447
+
448
+ button_start=gr.Button("START")
449
  with gr.Row():
450
  outputs=[]
451
  id_modules=[]
 
454
  id_modules.append(gr.Number(i,interactive=False,render=False))
455
  for o,i in zip(outputs,id_modules):
456
  o.change(fonc_start,[id_session,i],[o])
457
+ button_start.click(lambda : gr.Image(None),[],[o])
458
  gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
459
  interactive=False, show_share_button=True, container=True, format="png",
460
  preview=True, object_fit="cover",columns=4,rows=4)