Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def ac():
|
|
39 |
stamp = time.time()
|
40 |
return gr.update(value=stamp),gr.update(value=0)
|
41 |
def end(stamp):
|
42 |
-
ts = stamp +
|
43 |
ti = time.time()
|
44 |
if ti > ts and stamp != 0:
|
45 |
print("Cancelling")
|
@@ -50,8 +50,6 @@ def ac():
|
|
50 |
|
51 |
def im_fn(put,fac="",h=None):
|
52 |
if h == o:
|
53 |
-
if fac==" ":
|
54 |
-
fac=""
|
55 |
put = f"{put}{fac}"
|
56 |
fac = f"{fac} "
|
57 |
rn = random.randint(0, 19)
|
|
|
39 |
stamp = time.time()
|
40 |
return gr.update(value=stamp),gr.update(value=0)
|
41 |
def end(stamp):
|
42 |
+
ts = stamp + 60
|
43 |
ti = time.time()
|
44 |
if ti > ts and stamp != 0:
|
45 |
print("Cancelling")
|
|
|
50 |
|
51 |
def im_fn(put,fac="",h=None):
|
52 |
if h == o:
|
|
|
|
|
53 |
put = f"{put}{fac}"
|
54 |
fac = f"{fac} "
|
55 |
rn = random.randint(0, 19)
|