Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def ac():
|
|
87 |
t_state=gr.Number()
|
88 |
t_switch=gr.Textbox(value=0)
|
89 |
def clear_all():
|
90 |
-
return "",None,None,None,None,None,None
|
91 |
fac_b = gr.Textbox(value="",visible=False)
|
92 |
btn1.click(cl_fac,None,[fac_b,message])
|
93 |
b1=btn1.click(start,None,[t_state,t_switch])
|
@@ -97,6 +97,6 @@ def ac():
|
|
97 |
b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b])
|
98 |
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b])
|
99 |
swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5])
|
100 |
-
btn2.click(clear_all, None,[fac_b,put,out1,out2,out3,out4,t_state
|
101 |
b.queue(concurrency_count=100).launch(show_api=False)
|
102 |
ac()
|
|
|
87 |
t_state=gr.Number()
|
88 |
t_switch=gr.Textbox(value=0)
|
89 |
def clear_all():
|
90 |
+
return "",None,None,None,None,None,None
|
91 |
fac_b = gr.Textbox(value="",visible=False)
|
92 |
btn1.click(cl_fac,None,[fac_b,message])
|
93 |
b1=btn1.click(start,None,[t_state,t_switch])
|
|
|
97 |
b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b])
|
98 |
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b])
|
99 |
swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5])
|
100 |
+
btn2.click(clear_all, None,[fac_b,put,out1,out2,out3,out4,t_state],cancels=[b1,sta,b2,b3,b4,b5,swi])
|
101 |
b.queue(concurrency_count=100).launch(show_api=False)
|
102 |
ac()
|