Spaces:
Running
Running
Update app.py
Browse files
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 =
|
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 |
|