Spaces:
Sleeping
Sleeping
Commit ·
bbbb404
1
Parent(s): 9ef85f9
add uv.lock
Browse files- pyproject.toml +4 -0
- server/app.py +8 -0
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -24,3 +24,7 @@ dev = [
|
|
| 24 |
|
| 25 |
[tool.setuptools.packages.find]
|
| 26 |
include = ["incident_env*"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
[tool.setuptools.packages.find]
|
| 26 |
include = ["incident_env*"]
|
| 27 |
+
|
| 28 |
+
[project.scripts]
|
| 29 |
+
server = "incident_env.server.app:main"
|
| 30 |
+
|
server/app.py
CHANGED
|
@@ -119,3 +119,11 @@ def list_tasks() -> Dict[str, Any]:
|
|
| 119 |
"time_budget_minutes": scenario.time_budget_minutes,
|
| 120 |
}
|
| 121 |
return {"tasks": tasks}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
"time_budget_minutes": scenario.time_budget_minutes,
|
| 120 |
}
|
| 121 |
return {"tasks": tasks}
|
| 122 |
+
|
| 123 |
+
def main():
|
| 124 |
+
import uvicorn
|
| 125 |
+
uvicorn.run("incident_env.server.app:app", host="0.0.0.0", port=8000, reload=False)
|
| 126 |
+
|
| 127 |
+
if __name__ == "__main__":
|
| 128 |
+
main()
|
| 129 |
+
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|