Spaces:
Paused
Paused
Commit
•
66fb497
1
Parent(s):
2143804
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ def restart():
|
|
16 |
with gr.Blocks() as demo:
|
17 |
gr.Markdown(f"Time started: {time_start}")
|
18 |
|
19 |
-
demo.launch()
|
20 |
-
|
21 |
scheduler = BackgroundScheduler()
|
22 |
job = scheduler.add_job(restart, "interval", minutes=2)
|
23 |
-
scheduler.start()
|
|
|
|
|
|
16 |
with gr.Blocks() as demo:
|
17 |
gr.Markdown(f"Time started: {time_start}")
|
18 |
|
|
|
|
|
19 |
scheduler = BackgroundScheduler()
|
20 |
job = scheduler.add_job(restart, "interval", minutes=2)
|
21 |
+
scheduler.start()
|
22 |
+
|
23 |
+
demo.launch()
|