Spaces:
Sleeping
Sleeping
modified: debug_env/server/app.py
Browse files- debug_env/server/app.py +5 -0
debug_env/server/app.py
CHANGED
|
@@ -59,6 +59,11 @@ async def startup_event():
|
|
| 59 |
"""Initialize database and seed task registry on startup."""
|
| 60 |
init_db()
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
def main(host: str = "0.0.0.0", port: int = 8000):
|
| 64 |
"""
|
|
|
|
| 59 |
"""Initialize database and seed task registry on startup."""
|
| 60 |
init_db()
|
| 61 |
|
| 62 |
+
@app.get("/")
|
| 63 |
+
async def root():
|
| 64 |
+
"""Root endpoint for HF Spaces health checks."""
|
| 65 |
+
return {"status": "ok", "message": "debug-env is running!"}
|
| 66 |
+
|
| 67 |
|
| 68 |
def main(host: str = "0.0.0.0", port: int = 8000):
|
| 69 |
"""
|