Spaces:
Sleeping
Sleeping
Commit ·
ec4c846
1
Parent(s): af3714a
Fix OpenEnv validator: add uv.lock, server entry point, openenv-core dep
Browse files- pyproject.toml +4 -0
- server/app.py +11 -2
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -10,4 +10,8 @@ dependencies = [
|
|
| 10 |
"requests>=2.31.0",
|
| 11 |
"openai>=1.30.0",
|
| 12 |
"python-dotenv>=1.0.0",
|
|
|
|
| 13 |
]
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"requests>=2.31.0",
|
| 11 |
"openai>=1.30.0",
|
| 12 |
"python-dotenv>=1.0.0",
|
| 13 |
+
"openenv-core>=0.2.0",
|
| 14 |
]
|
| 15 |
+
|
| 16 |
+
[project.scripts]
|
| 17 |
+
server = "server.app:main"
|
server/app.py
CHANGED
|
@@ -1,6 +1,15 @@
|
|
| 1 |
"""
|
| 2 |
-
Root-level server/app.py — re-exports the FastAPI app from email_env
|
| 3 |
-
|
| 4 |
"""
|
| 5 |
|
|
|
|
| 6 |
from email_env.server.app import app # noqa: F401
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
"""
|
| 2 |
+
Root-level server/app.py — re-exports the FastAPI app from email_env
|
| 3 |
+
and provides a main() entry point for OpenEnv validator.
|
| 4 |
"""
|
| 5 |
|
| 6 |
+
import uvicorn
|
| 7 |
from email_env.server.app import app # noqa: F401
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def main():
|
| 11 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|