Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def ac():
|
|
40 |
stamp = time.time()
|
41 |
return gr.update(value=stamp),gr.update(value=0)
|
42 |
def end(stamp):
|
43 |
-
ts = stamp +
|
44 |
ti = time.time()
|
45 |
if ti > ts and stamp != 0:
|
46 |
print("Cancelling")
|
@@ -87,8 +87,6 @@ def ac():
|
|
87 |
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b])
|
88 |
|
89 |
t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5])
|
90 |
-
|
91 |
-
|
92 |
|
93 |
b.queue(concurrency_count=100).launch(show_api=False)
|
94 |
ac()
|
|
|
40 |
stamp = time.time()
|
41 |
return gr.update(value=stamp),gr.update(value=0)
|
42 |
def end(stamp):
|
43 |
+
ts = stamp + 20
|
44 |
ti = time.time()
|
45 |
if ti > ts and stamp != 0:
|
46 |
print("Cancelling")
|
|
|
87 |
b5=out3.change(im_fn,[put,fac_b,h],[out4,fac_b])
|
88 |
|
89 |
t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5])
|
|
|
|
|
90 |
|
91 |
b.queue(concurrency_count=100).launch(show_api=False)
|
92 |
ac()
|