Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,6 @@ def ac():
|
|
68 |
def cl_fac():
|
69 |
return "",gr.HTML.update("", visible=False)
|
70 |
with gr.Blocks(css=css) as b:
|
71 |
-
gr.Progress(im_fn)
|
72 |
with gr.Row():
|
73 |
with gr.Column():
|
74 |
put = gr.Textbox()
|
@@ -97,8 +96,8 @@ def ac():
|
|
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=
|
101 |
-
b2=btn1.click(im_fn,[put,fac_b,h],[out1,fac_b], show_progress=
|
102 |
b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b], 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)
|
|
|
68 |
def cl_fac():
|
69 |
return "",gr.HTML.update("", visible=False)
|
70 |
with gr.Blocks(css=css) as b:
|
|
|
71 |
with gr.Row():
|
72 |
with gr.Column():
|
73 |
put = gr.Textbox()
|
|
|
96 |
#a1=btn1.click(noth,None,btn1,every=1)
|
97 |
btn1.click(cl_fac,None,[fac_b,message])
|
98 |
b1=btn1.click(start,None,[t_state,t_switch])
|
99 |
+
sta = t_state.change(end,t_state,[t_switch,message],every=1,show_progress=True)
|
100 |
+
b2=btn1.click(im_fn,[put,fac_b,h],[out1,fac_b], show_progress=False)
|
101 |
b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b], show_progress=False)
|
102 |
b4=out2.change(im_fn,[put,fac_b,h],[out3,fac_b], show_progress=False)
|
103 |
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b], show_progress=False)
|