Chirag0123 commited on
Commit
e40cf69
·
1 Parent(s): 1f0f7d7

fix(deploy): resolve multi-mode deployment validator issues with uv, openenv requirements, and standard main() loop

Browse files
Files changed (3) hide show
  1. pyproject.toml +5 -1
  2. server/app.py +8 -0
  3. uv.lock +0 -0
pyproject.toml CHANGED
@@ -20,9 +20,13 @@ dependencies = [
20
  "httpx",
21
  "pytest",
22
  "gradio>=4.0",
23
- "huggingface_hub"
 
24
  ]
25
 
 
 
 
26
  [project.urls]
27
  Homepage = "https://huggingface.co/spaces/Chirag0123/codebase-nav-env"
28
  Repository = "https://github.com/Chirag0096/Codebase-Navigation-Repair-OpenEnv.git"
 
20
  "httpx",
21
  "pytest",
22
  "gradio>=4.0",
23
+ "huggingface_hub",
24
+ "openenv-core>=0.2.0"
25
  ]
26
 
27
+ [project.scripts]
28
+ server = "server.app:main"
29
+
30
  [project.urls]
31
  Homepage = "https://huggingface.co/spaces/Chirag0123/codebase-nav-env"
32
  Repository = "https://github.com/Chirag0096/Codebase-Navigation-Repair-OpenEnv.git"
server/app.py CHANGED
@@ -482,3 +482,11 @@ async def health_v4():
482
  "/benchmark", "/analytics",
483
  ],
484
  }
 
 
 
 
 
 
 
 
 
482
  "/benchmark", "/analytics",
483
  ],
484
  }
485
+
486
+ def main():
487
+ import uvicorn
488
+ port = int(os.environ.get("PORT", 8000))
489
+ uvicorn.run("server.app:app", host="0.0.0.0", port=port, reload=True)
490
+
491
+ if __name__ == "__main__":
492
+ main()
uv.lock ADDED
The diff for this file is too large to render. See raw diff