Spaces:
Sleeping
Sleeping
Commit ·
d6ece09
1
Parent(s): 6f9b168
Add root endpoint with helpful message
Browse files
app.py
CHANGED
|
@@ -33,6 +33,25 @@ class StepResponse(BaseModel):
|
|
| 33 |
info: Dict[str, Any]
|
| 34 |
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
@app.get("/health")
|
| 37 |
async def health():
|
| 38 |
return {"status": "ok", "environment": "mlops_debug_env", "version": "1.0.0"}
|
|
|
|
| 33 |
info: Dict[str, Any]
|
| 34 |
|
| 35 |
|
| 36 |
+
@app.get("/")
|
| 37 |
+
async def root():
|
| 38 |
+
return {
|
| 39 |
+
"message": "MLOps Pipeline Debugger API",
|
| 40 |
+
"version": "1.0.0",
|
| 41 |
+
"docs": "This is an OpenEnv-compatible RL environment",
|
| 42 |
+
"endpoints": {
|
| 43 |
+
"GET /": "This message",
|
| 44 |
+
"GET /health": "Health check",
|
| 45 |
+
"GET /tasks": "List available tasks",
|
| 46 |
+
"GET /openenv/state": "OpenEnv state",
|
| 47 |
+
"POST /reset": "Start a new episode",
|
| 48 |
+
"POST /step": "Take an action",
|
| 49 |
+
"GET /state": "Get current state",
|
| 50 |
+
},
|
| 51 |
+
"space_url": "https://angelgupta-mlops-openenv.hf.space",
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
|
| 55 |
@app.get("/health")
|
| 56 |
async def health():
|
| 57 |
return {"status": "ok", "environment": "mlops_debug_env", "version": "1.0.0"}
|