Spaces:
Configuration error
Configuration error
Download axis_numeric/serve.py from serety95/axis-numeric: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/serety95/axis-numeric/resolve/main/axis_numeric/serve.py
- Command line
-
hf download hf://spaces/serety95/axis-numeric/axis_numeric/serve.py
-
curl -L -o serve.py https://huggingface.co/spaces/serety95/axis-numeric/resolve/main/axis_numeric/serve.py
523 Bytes
| """@module numeric-inference/serve — one process. ORT threads come from AXIS_ORT_INTRA_OP.""" | |
| from __future__ import annotations | |
| import os | |
| import uvicorn | |
| def main() -> None: | |
| uvicorn.run( | |
| "axis_numeric.main:app", | |
| host=os.getenv("AXIS_BIND_HOST", "127.0.0.1"), | |
| port=int(os.getenv("AXIS_HTTP_PORT", "8081")), | |
| workers=1, | |
| access_log=False, | |
| timeout_keep_alive=5, | |
| timeout_graceful_shutdown=30, | |
| ) | |
| if __name__ == "__main__": | |
| main() | |