ReverseCoder1 commited on
Commit
116e458
·
1 Parent(s): c4ebaaa

Readme change final 756

Browse files
Files changed (5) hide show
  1. Dockerfile +1 -1
  2. pyproject.toml +8 -1
  3. server/__init__.py +0 -0
  4. server/app.py +9 -0
  5. uv.lock +0 -0
Dockerfile CHANGED
@@ -10,7 +10,7 @@ RUN pip install --no-cache-dir \
10
  pydantic==2.5.0 \
11
  pandas==2.1.3 \
12
  numpy==1.26.2 \
13
- openai==1.3.7 \
14
  pyyaml==6.0.1 \
15
  python-dotenv==1.0.0
16
 
 
10
  pydantic==2.5.0 \
11
  pandas==2.1.3 \
12
  numpy==1.26.2 \
13
+ openai>=2.7.2 \
14
  pyyaml==6.0.1 \
15
  python-dotenv==1.0.0
16
 
pyproject.toml CHANGED
@@ -13,15 +13,22 @@ authors = [
13
  { name = "thorodin103" }
14
  ]
15
  dependencies = [
 
16
  "fastapi==0.104.1",
17
  "uvicorn==0.24.0",
18
  "pydantic==2.5.0",
19
  "pandas==2.1.3",
20
  "numpy==1.26.2",
21
- "openai==1.3.7",
22
  "PyYAML==6.0.1",
23
  "python-dotenv==1.0.0"
24
  ]
25
 
 
 
 
26
  [tool.setuptools]
27
  py-modules = ["main", "environment", "models", "inference"]
 
 
 
 
13
  { name = "thorodin103" }
14
  ]
15
  dependencies = [
16
+ "openenv-core>=0.2.0",
17
  "fastapi==0.104.1",
18
  "uvicorn==0.24.0",
19
  "pydantic==2.5.0",
20
  "pandas==2.1.3",
21
  "numpy==1.26.2",
22
+ "openai>=2.7.2",
23
  "PyYAML==6.0.1",
24
  "python-dotenv==1.0.0"
25
  ]
26
 
27
+ [project.scripts]
28
+ server = "server.app:main"
29
+
30
  [tool.setuptools]
31
  py-modules = ["main", "environment", "models", "inference"]
32
+
33
+ [tool.setuptools.packages.find]
34
+ include = ["server*"]
server/__init__.py ADDED
File without changes
server/app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ """Server entrypoint required by multi-mode deployment validators."""
2
+
3
+ from main import app
4
+ import uvicorn
5
+
6
+
7
+ def main() -> None:
8
+ """CLI entrypoint for `server` script in pyproject.toml."""
9
+ uvicorn.run("server.app:app", host="0.0.0.0", port=7860)
uv.lock ADDED
The diff for this file is too large to render. See raw diff