shank commited on
Commit
ade347f
·
1 Parent(s): 8b39a8b

Add server/app.py entry point for OpenEnv validation

Browse files
Files changed (2) hide show
  1. server/__init__.py +2 -0
  2. server/app.py +17 -0
server/__init__.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # server/__init__.py
2
+ # Initializing the server package for OpenEnv validation.
server/app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Server Entry Point for AgentDebuggerEnv
3
+ ========================================
4
+ This file satisfies the OpenEnv validator requirement for 'server/app.py'.
5
+ It imports the FastAPI app from 'env.server' and provides a main() function.
6
+ """
7
+
8
+ import uvicorn
9
+ from env.server import app
10
+
11
+ def main():
12
+ """Main function called by the 'server' script defined in pyproject.toml."""
13
+ # Runs the server on port 8000 as required by the hackathon spec
14
+ uvicorn.run(app, host="0.0.0.0", port=8000, workers=1)
15
+
16
+ if __name__ == "__main__":
17
+ main()