Spaces:
Sleeping
Sleeping
Commit ·
7c81a00
1
Parent(s): dcc7e46
added server entry pointand uv lock
Browse files- pyproject.toml +7 -4
- requirements.txt +1 -1
- server/__init__.py +1 -0
- server/app.py +16 -0
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -14,12 +14,15 @@ authors = [
|
|
| 14 |
]
|
| 15 |
dependencies = [
|
| 16 |
"fastapi==0.115.12",
|
| 17 |
-
"uvicorn[standard]==0.
|
| 18 |
-
"pydantic==2.11.
|
| 19 |
-
"openai==
|
| 20 |
"requests==2.32.3",
|
| 21 |
"openenv-core==0.2.3"
|
| 22 |
]
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
[tool.setuptools]
|
| 25 |
-
packages = ["app"]
|
|
|
|
| 14 |
]
|
| 15 |
dependencies = [
|
| 16 |
"fastapi==0.115.12",
|
| 17 |
+
"uvicorn[standard]==0.35.0",
|
| 18 |
+
"pydantic==2.11.7",
|
| 19 |
+
"openai==2.7.2",
|
| 20 |
"requests==2.32.3",
|
| 21 |
"openenv-core==0.2.3"
|
| 22 |
]
|
| 23 |
|
| 24 |
+
[project.scripts]
|
| 25 |
+
server = "server.app:main"
|
| 26 |
+
|
| 27 |
[tool.setuptools]
|
| 28 |
+
packages = ["app", "server"]
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
fastapi==0.115.12
|
| 2 |
-
uvicorn[standard]==0.
|
| 3 |
pydantic==2.11.7
|
| 4 |
openai==2.7.2
|
| 5 |
requests==2.32.3
|
|
|
|
| 1 |
fastapi==0.115.12
|
| 2 |
+
uvicorn[standard]==0.35.0
|
| 3 |
pydantic==2.11.7
|
| 4 |
openai==2.7.2
|
| 5 |
requests==2.32.3
|
server/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""Deployment entry point package for Synapse Code Auditor."""
|
server/app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
import uvicorn
|
| 6 |
+
|
| 7 |
+
from app.main import app
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def main() -> None:
|
| 11 |
+
port = int(os.getenv("PORT", "7860"))
|
| 12 |
+
uvicorn.run(app, host="0.0.0.0", port=port)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
if __name__ == "__main__":
|
| 16 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|