CoBeDigger commited on
Commit
bd142b3
·
1 Parent(s): 8fb4252

Add root endpoint for HF Spaces

Browse files
Files changed (1) hide show
  1. app/main.py +4 -0
app/main.py CHANGED
@@ -46,6 +46,10 @@ async def startup_event():
46
  except Exception as e:
47
  print(f"Warning: A task failed to load during startup validation: {e}")
48
 
 
 
 
 
49
  @app.post("/reset", response_model=Observation | ErrorResponse)
50
  async def api_reset(req: TaskIdRequest):
51
  try:
 
46
  except Exception as e:
47
  print(f"Warning: A task failed to load during startup validation: {e}")
48
 
49
+ @app.get("/")
50
+ def root():
51
+ return {"status": "ok", "env": "DataEngEnv", "version": "1.0.0",
52
+ "docs": "/docs", "health": "/health", "tasks": "/tasks"}
53
  @app.post("/reset", response_model=Observation | ErrorResponse)
54
  async def api_reset(req: TaskIdRequest):
55
  try: