Spaces:
Sleeping
Sleeping
Aryanshh commited on
Commit ·
b4bddc9
1
Parent(s): 60ea8be
build: Add uv lock, openenv-core, and server wrapper for multi-mode deployment
Browse files- pyproject.toml +7 -3
- server/app.py +8 -0
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -7,7 +7,7 @@ name = "openenv-email-triage"
|
|
| 7 |
version = "1.0.0"
|
| 8 |
description = "A real-world RL environment where an AI agent triages a synthetic corporate inbox."
|
| 9 |
readme = "README.md"
|
| 10 |
-
requires-python = ">=3.
|
| 11 |
dependencies = [
|
| 12 |
"fastapi",
|
| 13 |
"uvicorn[standard]",
|
|
@@ -16,8 +16,12 @@ dependencies = [
|
|
| 16 |
"hypothesis",
|
| 17 |
"pytest",
|
| 18 |
"pyyaml",
|
| 19 |
-
"httpx"
|
|
|
|
| 20 |
]
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
[tool.setuptools.packages.find]
|
| 23 |
-
include = ["email_triage*"]
|
|
|
|
| 7 |
version = "1.0.0"
|
| 8 |
description = "A real-world RL environment where an AI agent triages a synthetic corporate inbox."
|
| 9 |
readme = "README.md"
|
| 10 |
+
requires-python = ">=3.11"
|
| 11 |
dependencies = [
|
| 12 |
"fastapi",
|
| 13 |
"uvicorn[standard]",
|
|
|
|
| 16 |
"hypothesis",
|
| 17 |
"pytest",
|
| 18 |
"pyyaml",
|
| 19 |
+
"httpx",
|
| 20 |
+
"openenv-core>=0.2.0"
|
| 21 |
]
|
| 22 |
|
| 23 |
+
[project.scripts]
|
| 24 |
+
server = "server.app:start"
|
| 25 |
+
|
| 26 |
[tool.setuptools.packages.find]
|
| 27 |
+
include = ["email_triage*", "server*"]
|
server/app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import uvicorn
|
| 2 |
+
from email_triage.server import app
|
| 3 |
+
|
| 4 |
+
def start():
|
| 5 |
+
uvicorn.run("email_triage.server:app", host="0.0.0.0", port=7860)
|
| 6 |
+
|
| 7 |
+
if __name__ == "__main__":
|
| 8 |
+
start()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|