Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- server/app.py +12 -0
server/app.py
CHANGED
|
@@ -57,6 +57,18 @@ app = create_app(
|
|
| 57 |
max_concurrent_envs=3,
|
| 58 |
)
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
# βββ Hackathon-required endpoints βββββββββββββββββββββββββββββββββββββββββββββ
|
| 62 |
|
|
|
|
| 57 |
max_concurrent_envs=3,
|
| 58 |
)
|
| 59 |
|
| 60 |
+
# βββ Root endpoint (required: hackathon validator pings / and expects 200) ββββ
|
| 61 |
+
|
| 62 |
+
@app.get("/")
|
| 63 |
+
async def root():
|
| 64 |
+
"""Root endpoint β returns environment info and available endpoints."""
|
| 65 |
+
return {
|
| 66 |
+
"name": "api_debug_env",
|
| 67 |
+
"description": "API Integration Debugging Environment",
|
| 68 |
+
"status": "running",
|
| 69 |
+
"endpoints": ["/reset", "/step", "/state", "/tasks", "/grader", "/baseline", "/health", "/schema", "/docs"],
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
|
| 73 |
# βββ Hackathon-required endpoints βββββββββββββββββββββββββββββββββββββββββββββ
|
| 74 |
|