Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,8 @@ def ac():
|
|
65 |
elif h != o:
|
66 |
return(None,None)
|
67 |
def cl_fac():
|
68 |
-
t_state,t_switch=start()
|
69 |
-
return "",
|
70 |
with gr.Blocks() as b:
|
71 |
with gr.Row():
|
72 |
put = gr.Textbox()
|
@@ -83,8 +83,8 @@ def ac():
|
|
83 |
t_switch=gr.Textbox(value=0)
|
84 |
fac_b = gr.Textbox(value="",visible=False)
|
85 |
|
86 |
-
b0=btn1.click(cl_fac,None,[
|
87 |
-
|
88 |
sta = t_state.change(end,t_state,t_switch,every=1)
|
89 |
b2=t_state.change(im_fn,[put,fac_b,h],[out1,fac_b])
|
90 |
b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b])
|
|
|
65 |
elif h != o:
|
66 |
return(None,None)
|
67 |
def cl_fac():
|
68 |
+
#t_state,t_switch=start()
|
69 |
+
return "",None,None,None,None
|
70 |
with gr.Blocks() as b:
|
71 |
with gr.Row():
|
72 |
put = gr.Textbox()
|
|
|
83 |
t_switch=gr.Textbox(value=0)
|
84 |
fac_b = gr.Textbox(value="",visible=False)
|
85 |
|
86 |
+
b0=btn1.click(cl_fac,None,[fac_bout1,out2,out3,out4],show_progress=False)
|
87 |
+
b1=btn1.click(start,None,[t_state,t_switch])
|
88 |
sta = t_state.change(end,t_state,t_switch,every=1)
|
89 |
b2=t_state.change(im_fn,[put,fac_b,h],[out1,fac_b])
|
90 |
b3=out1.change(im_fn,[put,fac_b,h],[out2,fac_b])
|