xp3857 commited on
Commit
59afa4a
1 Parent(s): 4b9f915

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -44,12 +44,14 @@ def ac():
44
  return gr.update(value=stamp),gr.update(value=0)
45
 
46
  def end(stamp):
47
- ts = t_stamp + 6
48
  ti = time.time()
49
  if ti > ts and stamp != 0:
50
  t=gr.update(value=1)
 
51
  else:
52
  t=gr.update(value=0)
 
53
  pass
54
  return t
55
 
 
44
  return gr.update(value=stamp),gr.update(value=0)
45
 
46
  def end(stamp):
47
+ ts = stamp + 6
48
  ti = time.time()
49
  if ti > ts and stamp != 0:
50
  t=gr.update(value=1)
51
+ print("Cancelling")
52
  else:
53
  t=gr.update(value=0)
54
+ print("Passing")
55
  pass
56
  return t
57