Add autonomous workflow and offline quality gates
This commit is contained in:
@@ -9,11 +9,13 @@ if str(ROOT) not in sys.path:
|
||||
from src.api.server import serve_api
|
||||
|
||||
|
||||
def main() -> None:
|
||||
host = os.getenv("AI_ICT_API_HOST", "0.0.0.0")
|
||||
port = int(os.getenv("AI_ICT_API_PORT", "8000"))
|
||||
def main(env=None) -> int:
|
||||
env = os.environ if env is None else env
|
||||
host = env.get("AI_ICT_API_HOST", "0.0.0.0")
|
||||
port = int(env.get("AI_ICT_API_PORT", "8000"))
|
||||
serve_api(host=host, port=port)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
raise SystemExit(main())
|
||||
|
||||
Reference in New Issue
Block a user