xp3857 commited on
Commit
7f7245b
1 Parent(s): 70f2202

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 "",t_state,t_switch,None,None,None,None
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,[fac_b,t_state,t_switch,out1,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])
 
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])