使用HTTP的主机到mlservicewrapper服务
mlservicewrapper-host-http的Python项目详细描述
将^{
本地测试
使用开发服务器足以进行测试,但不应在生产中使用。在
命令行参数
Parameter | Required? | Description | Format |
---|---|---|---|
--config | Yes | Path to service configuration file. | ^{ |
--host | No | Host to bind to. Defaults to 127.0.0.1. | ^{ |
--port | No | Port to bind to. Defaults to 5000. | ^{ |
部署
使用gunicorn在生产环境中运行:
exportSERVICE_CONFIG_PATH=/path/to/config.json gunicorn -w 4 -k uvicorn.workers.UvicornWorker mlservicewrapper.host.http
- 项目
标签: