xp3857 commited on
Commit
f65f4eb
1 Parent(s): 7425bed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -54,7 +54,7 @@ def ac():
54
  put = f"{put}{fac}"
55
  fac = f"{fac} "
56
  print (rn)
57
- return model(put),gr.update(value=1)
58
  elif int(fac_c)!=1:
59
  pass
60
  elif h != o:
@@ -88,11 +88,11 @@ def ac():
88
 
89
  b1=btn1.click(start,None,[t_state,t_switch,out1,out2,out3,out4])
90
  sta = t_state.change(end,t_state,t_switch,every=1)
91
- b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_c])
92
- b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_c])
93
- b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_c])
94
- b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_c])
95
  b6=out4.change(clear,None,[t_switch,fac_c])
 
96
  #b0=btn1.click(cl_fac,None,[fac_b,fac_c,out1,out2,out3,out4],show_progress=False)
97
  t_switch.change(clear,None,[t_switch,fac_c], cancels=[sta,b2,b3,b4,b5])
98
 
 
54
  put = f"{put}{fac}"
55
  fac = f"{fac} "
56
  print (rn)
57
+ return model(put),fac,gr.update(value=1)
58
  elif int(fac_c)!=1:
59
  pass
60
  elif h != o:
 
88
 
89
  b1=btn1.click(start,None,[t_state,t_switch,out1,out2,out3,out4])
90
  sta = t_state.change(end,t_state,t_switch,every=1)
91
+ b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
92
+ b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
93
+ b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])
 
94
  b6=out4.change(clear,None,[t_switch,fac_c])
95
+ b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_b,fac_c])
96
  #b0=btn1.click(cl_fac,None,[fac_b,fac_c,out1,out2,out3,out4],show_progress=False)
97
  t_switch.change(clear,None,[t_switch,fac_c], cancels=[sta,b2,b3,b4,b5])
98