Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ demo_list = DemoList()
|
|
16 |
api = HfApi()
|
17 |
|
18 |
scheduler = BackgroundScheduler()
|
19 |
-
scheduler.add_job(func=lambda: api.restart_space('
|
20 |
trigger='interval',
|
21 |
seconds=60 * INTERVAL_MIN)
|
22 |
scheduler.start()
|
|
|
16 |
api = HfApi()
|
17 |
|
18 |
scheduler = BackgroundScheduler()
|
19 |
+
scheduler.add_job(func=lambda: api.restart_space(os.getenv('SPACE_ID')),
|
20 |
trigger='interval',
|
21 |
seconds=60 * INTERVAL_MIN)
|
22 |
scheduler.start()
|