padmapriyagosakan commited on
Commit
8a665bd
·
2 Parent(s): 01d4e5c184ea1c

Merge branch 'Iteration_3'

Browse files
Files changed (2) hide show
  1. .dockerignore +9 -0
  2. server/app.py +7 -0
.dockerignore ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.pyc
3
+ *.pyo
4
+ .git
5
+ .gitignore
6
+ outputs/
7
+ *.egg-info
8
+ .venv
9
+ .env
server/app.py CHANGED
@@ -48,6 +48,13 @@ app = FastAPI(
48
  version="2.0.0",
49
  )
50
 
 
 
 
 
 
 
 
51
  # Per-session environment instances — one per /reset call.
52
  # Keyed by episode_id; keeps the last _MAX_SESSIONS sessions to bound memory.
53
  _MAX_SESSIONS = 20
 
48
  version="2.0.0",
49
  )
50
 
51
+
52
+ @app.get("/", include_in_schema=False)
53
+ async def root():
54
+ """Root liveness endpoint for HF Spaces readiness checks."""
55
+ return {"status": "ok", "app": "payops_env"}
56
+
57
+
58
  # Per-session environment instances — one per /reset call.
59
  # Keyed by episode_id; keeps the last _MAX_SESSIONS sessions to bound memory.
60
  _MAX_SESSIONS = 20