Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def ac():
|
|
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)
|
@@ -103,6 +103,7 @@ def ac():
|
|
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)
|
108 |
ac()
|
|
|
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)
|
|
|
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(noth,None,None,cancels=[b1,sta,b2,b3,b4,b5,swi,a1],show_progress=False)
|
107 |
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)
|
108 |
b.queue(concurrency_count=100).launch(show_api=False)
|
109 |
ac()
|