DemiPoto commited on
Commit
eb1b963
·
verified ·
1 Parent(s): 17e9ae8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -467,7 +467,7 @@ def make_me():
467
 
468
  with gr.Column():
469
  with gr.Row():
470
- nb_req_simult=gr.Number(2,"Number simultaneous request")
471
  nb_req_simult_max_by_mod=gr.Number(2,"Number max simultaneous request by model")
472
 
473
  button_start=gr.Button("START")
@@ -486,7 +486,7 @@ def make_me():
486
  for o,i,s in zip(outputs,id_modules,states):
487
  #o.change(fonc_start,[id_session,i],[o])
488
  #o.change(test_change,[],[])
489
- s.change(test_change,[],[])
490
  #button_start.click(lambda : gr.Image(None),[],[o])
491
  gen_event = gr.on(triggers=[button_start.click], fn=test_start,inputs=[s], outputs=[s])
492
 
 
467
 
468
  with gr.Column():
469
  with gr.Row():
470
+ nb_req_simult=gr.Number(1,"Number simultaneous request")
471
  nb_req_simult_max_by_mod=gr.Number(2,"Number max simultaneous request by model")
472
 
473
  button_start=gr.Button("START")
 
486
  for o,i,s in zip(outputs,id_modules,states):
487
  #o.change(fonc_start,[id_session,i],[o])
488
  #o.change(test_change,[],[])
489
+ s.change(test_change,[s],[s])
490
  #button_start.click(lambda : gr.Image(None),[],[o])
491
  gen_event = gr.on(triggers=[button_start.click], fn=test_start,inputs=[s], outputs=[s])
492