xp3857 commited on
Commit
2f0e793
1 Parent(s): dae0775

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def ac():
90
  b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
91
  b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
92
  b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])
93
- b0=btn1.click(cl_fac,None,[fac_b,fac_c,out1,out2,out3,out4],show_progress=False)
94
  b1=btn1.click(start,None,[t_state,t_switch])
95
  sta = t_state.change(end,t_state,t_switch,every=1)
96
  b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_b,fac_c])
 
90
  b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
91
  b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
92
  b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])
93
+ b0=btn1.click(cl_fac,None,[fac_b,fac_c,out1,out2,out3,out4],cancels=[b3,b4,b5],show_progress=False)
94
  b1=btn1.click(start,None,[t_state,t_switch])
95
  sta = t_state.change(end,t_state,t_switch,every=1)
96
  b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_b,fac_c])