luciferai-devil commited on
Commit
f60ce5a
Β·
verified Β·
1 Parent(s): cb83ebc

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 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."""