Your Name commited on
Commit
7d56332
Β·
1 Parent(s): 7078b21

fix(deployment): generate uv.lock, add project server entrypoint and openenv-core to pyproject.toml

Browse files
Files changed (3) hide show
  1. app.py +4 -1
  2. pyproject.toml +2 -0
  3. uv.lock +0 -0
app.py CHANGED
@@ -235,6 +235,9 @@ from gradio.routes import mount_gradio_app
235
  app = mount_gradio_app(api, demo, path="/ui")
236
 
237
  # ── Entry point ───────────────────────────────────────────────────────────────
238
- if __name__ == "__main__":
239
  port = int(os.getenv("PORT", 7860))
240
  uvicorn.run(app, host="0.0.0.0", port=port)
 
 
 
 
235
  app = mount_gradio_app(api, demo, path="/ui")
236
 
237
  # ── Entry point ───────────────────────────────────────────────────────────────
238
+ def serve():
239
  port = int(os.getenv("PORT", 7860))
240
  uvicorn.run(app, host="0.0.0.0", port=port)
241
+
242
+ if __name__ == "__main__":
243
+ serve()
pyproject.toml CHANGED
@@ -25,11 +25,13 @@ dependencies = [
25
  "pytest>=7.4.0",
26
  "pytest-timeout>=2.1.0",
27
  "ruff>=0.1.0",
 
28
  ]
29
 
30
  [project.scripts]
31
  teamforge-demo = "demo:run_demo"
32
  teamforge-benchmark = "benchmark:main"
 
33
 
34
  [project.urls]
35
  Homepage = "https://github.com/yourname/teamforge"
 
25
  "pytest>=7.4.0",
26
  "pytest-timeout>=2.1.0",
27
  "ruff>=0.1.0",
28
+ "openenv-core>=0.2.0",
29
  ]
30
 
31
  [project.scripts]
32
  teamforge-demo = "demo:run_demo"
33
  teamforge-benchmark = "benchmark:main"
34
+ server = "app:serve"
35
 
36
  [project.urls]
37
  Homepage = "https://github.com/yourname/teamforge"
uv.lock ADDED
The diff for this file is too large to render. See raw diff