xp3857 commited on
Commit
962ece5
1 Parent(s): 176dcc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -94,14 +94,14 @@ def ac():
94
 
95
  def noth():
96
  return
97
- a1=btn1.click(noth,None,None,every=1)
98
  btn1.click(cl_fac,None,[fac_b,message])
99
  b1=btn1.click(start,None,[t_state,t_switch])
100
  sta = t_state.change(end,t_state,[t_switch,message],every=1,show_progress=False)
101
  b2=btn1.click(im_fn,[put,fac_b,h],[out1,fac_b], show_progress=True)
102
- b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b], show_progress=True)
103
- b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b], show_progress=True)
104
- b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b], show_progress=True)
105
  swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5],show_progress=False)
106
  btn2.click(clear_all, None,[fac_b,put,out1,out2,out3,out4,t_state,t_switch],cancels=[b1,sta,b2,b3,b4,b5,swi,a1],show_progress=False)
107
  b.queue(concurrency_count=100).launch(show_api=False)
 
94
 
95
  def noth():
96
  return
97
+ a1=btn1.click(noth,None,btn1,every=1)
98
  btn1.click(cl_fac,None,[fac_b,message])
99
  b1=btn1.click(start,None,[t_state,t_switch])
100
  sta = t_state.change(end,t_state,[t_switch,message],every=1,show_progress=False)
101
  b2=btn1.click(im_fn,[put,fac_b,h],[out1,fac_b], show_progress=True)
102
+ b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b], show_progress=False)
103
+ b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b], show_progress=False)
104
+ b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b], show_progress=False)
105
  swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5],show_progress=False)
106
  btn2.click(clear_all, None,[fac_b,put,out1,out2,out3,out4,t_state,t_switch],cancels=[b1,sta,b2,b3,b4,b5,swi,a1],show_progress=False)
107
  b.queue(concurrency_count=100).launch(show_api=False)