xp3857 commited on
Commit
075ed3d
1 Parent(s): 9ca49e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -60,12 +60,12 @@ def ac():
60
  put = f"{put}{fac}"
61
  fac = f"{fac} "
62
  print (rn)
63
- return model(put),fac
64
  elif int(fac_c)!=1:
65
  pass
66
- return None,None
67
  elif h != o:
68
- return(None,"")
69
  def cl_fac():
70
  return "",0,None,None,None,None
71
 
@@ -94,7 +94,7 @@ def ac():
94
  b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_b,fac_c])
95
  b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
96
  b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
97
- b5=out3.change(im_fn,[put,fac_b,h,fac_c],[out4,fac_b,fac_c])
98
  t_switch.change(clear,t_switch,t_switch, cancels=[sta,b1,b2,b3,b4,b5])
99
 
100
  b.queue(concurrency_count=100).launch(show_api=False)
 
60
  put = f"{put}{fac}"
61
  fac = f"{fac} "
62
  print (rn)
63
+ return model(put),fac,1
64
  elif int(fac_c)!=1:
65
  pass
66
+ return None,None,0
67
  elif h != o:
68
+ return(None,"",0)
69
  def cl_fac():
70
  return "",0,None,None,None,None
71
 
 
94
  b2=btn1.click(im_fn,[put,fac_b,fac_d,h],[out1,fac_b,fac_c])
95
  b3=out1.change(im_fn,[put,fac_b,fac_c,h],[out2,fac_b,fac_c])
96
  b4=out2.change(im_fn,[put,fac_b,fac_c,h],[out3,fac_b,fac_c])
97
+ b5=out3.change(im_fn,[put,fac_b,fac_c,h],[out4,fac_b,fac_c])
98
  t_switch.change(clear,t_switch,t_switch, cancels=[sta,b1,b2,b3,b4,b5])
99
 
100
  b.queue(concurrency_count=100).launch(show_api=False)