Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- server/app.py +10 -0
server/app.py
CHANGED
|
@@ -12,6 +12,16 @@ app = create_fastapi_app(CodeDebugEnvironment, Action, Observation)
|
|
| 12 |
|
| 13 |
# ββ Additional required hackathon endpoints ββββββββββββββββββββββββββββ
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
@app.get("/tasks")
|
| 16 |
def list_tasks() -> list[TaskInfo]:
|
| 17 |
"""Return all tasks with their action schema."""
|
|
|
|
| 12 |
|
| 13 |
# ββ Additional required hackathon endpoints ββββββββββββββββββββββββββββ
|
| 14 |
|
| 15 |
+
@app.get("/")
|
| 16 |
+
def home():
|
| 17 |
+
return {
|
| 18 |
+
"message": "Welcome to the OpenEnv Code Debug Environment!",
|
| 19 |
+
"version": "1.0.0",
|
| 20 |
+
"endpoints": ["/health", "/tasks", "/reset", "/step", "/grader", "/baseline"],
|
| 21 |
+
"docs": "https://huggingface.co/spaces/luciferai-devil/code-debug-env"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
@app.get("/tasks")
|
| 26 |
def list_tasks() -> list[TaskInfo]:
|
| 27 |
"""Return all tasks with their action schema."""
|