Fix: Add uv.lock, project scripts, and app.py execution logic for multi-mode validation
Browse files- pyproject.toml +3 -0
- server/app.py +9 -0
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -26,3 +26,6 @@ dev = ["pytest", "pytest-asyncio", "httpx"]
|
|
| 26 |
|
| 27 |
[tool.setuptools.packages.find]
|
| 28 |
include = ["policy_evolver_env*"]
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
[tool.setuptools.packages.find]
|
| 28 |
include = ["policy_evolver_env*"]
|
| 29 |
+
|
| 30 |
+
[project.scripts]
|
| 31 |
+
server = "server.app:main"
|
server/app.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
from __future__ import annotations
|
| 3 |
from fastapi import FastAPI, HTTPException, Query
|
| 4 |
from fastapi.responses import JSONResponse, RedirectResponse
|
|
|
|
| 5 |
from openenv.core.env_server import create_fastapi_app
|
| 6 |
from models import (
|
| 7 |
ProposeClarificationAction, ProposeNewRuleAction, EvolveProcessAction,
|
|
@@ -70,3 +71,11 @@ async def run_baseline_endpoint():
|
|
| 70 |
from inference import run_direct_baseline
|
| 71 |
results = await run_direct_baseline()
|
| 72 |
return results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
from __future__ import annotations
|
| 3 |
from fastapi import FastAPI, HTTPException, Query
|
| 4 |
from fastapi.responses import JSONResponse, RedirectResponse
|
| 5 |
+
import uvicorn
|
| 6 |
from openenv.core.env_server import create_fastapi_app
|
| 7 |
from models import (
|
| 8 |
ProposeClarificationAction, ProposeNewRuleAction, EvolveProcessAction,
|
|
|
|
| 71 |
from inference import run_direct_baseline
|
| 72 |
results = await run_direct_baseline()
|
| 73 |
return results
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
def main():
|
| 77 |
+
"""Entry point for the OpenEnv multi-mode deployment grader."""
|
| 78 |
+
uvicorn.run("server.app:app", host="0.0.0.0", port=8000, reload=False)
|
| 79 |
+
|
| 80 |
+
if __name__ == "__main__":
|
| 81 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|