Spaces:
Paused
Paused
Commit
•
51484a8
1
Parent(s):
97809c3
Add startup event logging
Browse files
main.py
CHANGED
@@ -36,6 +36,7 @@ scheduler = CommitScheduler(
|
|
36 |
|
37 |
@asynccontextmanager
|
38 |
async def lifespan(app: FastAPI):
|
|
|
39 |
if not Path("votes").exists():
|
40 |
Path("votes").mkdir()
|
41 |
path = hf_hub_download(
|
|
|
36 |
|
37 |
@asynccontextmanager
|
38 |
async def lifespan(app: FastAPI):
|
39 |
+
logger.info("Running startup event")
|
40 |
if not Path("votes").exists():
|
41 |
Path("votes").mkdir()
|
42 |
path = hf_hub_download(
|