xp3857 commited on
Commit
7ca712f
1 Parent(s): fe498d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -39,7 +39,7 @@ def ac():
39
  return gr.update(value=0)
40
  def start():
41
  stamp = time.time()
42
- return gr.update(value=stamp),gr.update(value=0),None,None,None,None,0
43
 
44
  def end(stamp):
45
  ts = stamp + 6
@@ -87,12 +87,12 @@ def ac():
87
  fac_d = gr.Textbox(value=1)
88
 
89
 
90
- b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
91
- b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
92
- b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])
93
  b1=btn1.click(start,None,[t_state,t_switch,out1,out2,out3,out4,fac_c])
94
- b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_b,fac_c])
95
  sta = t_state.change(end,t_state,t_switch,every=1)
 
96
  #b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
97
  #b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
98
  #b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])
 
39
  return gr.update(value=0)
40
  def start():
41
  stamp = time.time()
42
+ return gr.update(value=stamp),gr.update(value=0),None,None,None,None,gr.update(value=0)
43
 
44
  def end(stamp):
45
  ts = stamp + 6
 
87
  fac_d = gr.Textbox(value=1)
88
 
89
 
90
+ #b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
91
+ #b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
92
+ #b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])
93
  b1=btn1.click(start,None,[t_state,t_switch,out1,out2,out3,out4,fac_c])
 
94
  sta = t_state.change(end,t_state,t_switch,every=1)
95
+ b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_b,fac_c])
96
  #b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
97
  #b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
98
  #b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])