kush5699 commited on
Commit
895eb3c
·
verified ·
1 Parent(s): 42757ca

Upload server.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server.py +18 -0
server.py CHANGED
@@ -29,6 +29,24 @@ class StepRequest(BaseModel):
29
  new_value: str = ""
30
 
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  @app.get("/health")
33
  async def health():
34
  return {"status": "healthy", "service": "data-validation-env"}
 
29
  new_value: str = ""
30
 
31
 
32
+ @app.get("/")
33
+ async def root():
34
+ return {
35
+ "name": "Data Validation Pipeline",
36
+ "description": "An RL environment for training agents to clean and validate structured data",
37
+ "version": "1.0.0",
38
+ "endpoints": {
39
+ "health": "/health",
40
+ "reset": "POST /reset",
41
+ "step": "POST /step",
42
+ "state": "GET /state",
43
+ "tasks": "GET /tasks",
44
+ },
45
+ "tasks": get_task_names(),
46
+ "status": "running",
47
+ }
48
+
49
+
50
  @app.get("/health")
51
  async def health():
52
  return {"status": "healthy", "service": "data-validation-env"}