Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -91,6 +91,10 @@ def ac():
|
|
91 |
def clear_all():
|
92 |
return "",None,None,None,None,None,None,1
|
93 |
fac_b = gr.Textbox(value="",visible=False)
|
|
|
|
|
|
|
|
|
94 |
btn1.click(cl_fac,None,[fac_b,message])
|
95 |
b1=btn1.click(start,None,[t_state,t_switch])
|
96 |
sta = t_state.change(end,t_state,[t_switch,message],every=1,show_progress=False)
|
@@ -99,6 +103,6 @@ def ac():
|
|
99 |
b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b], show_progress=True)
|
100 |
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b], show_progress=True)
|
101 |
swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5],show_progress=False)
|
102 |
-
btn2.click(clear_all, None,[fac_b,put,out1,out2,out3,out4,t_state,t_switch],cancels=[b1,sta,b2,b3,b4,b5],show_progress=False)
|
103 |
b.queue(concurrency_count=100).launch(show_api=False)
|
104 |
ac()
|
|
|
91 |
def clear_all():
|
92 |
return "",None,None,None,None,None,None,1
|
93 |
fac_b = gr.Textbox(value="",visible=False)
|
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)
|
|
|
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)
|
108 |
ac()
|