Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -166,12 +166,12 @@ def ac():
|
|
166 |
return gr.HTML.update("<div></div>")
|
167 |
#a1=btn1.click(noth,None,btn1,every=1)
|
168 |
btn1.click(cl_fac,None,[fac_b,message],show_progress=False)
|
169 |
-
b1=btn1.click(start,None,[t_state,t_switch],show_progress=
|
170 |
-
sta = t_state.change(end,t_state,[t_switch,message2],every=1,show_progress=
|
171 |
-
b2=btn1.click(im_fn,[put,fac_b,h],[out1,fac_b], show_progress=
|
172 |
-
b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b], show_progress=
|
173 |
-
b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b], show_progress=
|
174 |
-
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b], show_progress=
|
175 |
b6=out4.change(noth,None,message, show_progress=False)
|
176 |
swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5],show_progress=False)
|
177 |
#btn2.click(noth,None,message,cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
|
|
166 |
return gr.HTML.update("<div></div>")
|
167 |
#a1=btn1.click(noth,None,btn1,every=1)
|
168 |
btn1.click(cl_fac,None,[fac_b,message],show_progress=False)
|
169 |
+
b1=btn1.click(start,None,[t_state,t_switch],show_progress=True)
|
170 |
+
sta = t_state.change(end,t_state,[t_switch,message2],every=1,show_progress=True)
|
171 |
+
b2=btn1.click(im_fn,[put,fac_b,h],[out1,fac_b], show_progress=True)
|
172 |
+
b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b], show_progress=True)
|
173 |
+
b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b], show_progress=True)
|
174 |
+
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b], show_progress=True)
|
175 |
b6=out4.change(noth,None,message, show_progress=False)
|
176 |
swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5],show_progress=False)
|
177 |
#btn2.click(noth,None,message,cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|