在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):deepakiim/Deploy-machine-learning-model开源软件地址(OpenSource Url):https://github.com/deepakiim/Deploy-machine-learning-model开源编程语言(OpenSource Language):Python 64.8%开源软件介绍(OpenSource Introduction):Dockerize and deploy machine learning model as REST API using FlaskA simple Flask application that can serve predictions machine learning model. Reads a pickled sklearn model into memory when the Flask app is started and returns predictions through the /predict endpoint. You can also use the /train endpoint to train/retrain the model. Steps for deploying ML model
Docker commandsNote: Docker tag or id should be always specified in the end of the docker command to avoid issues
Docker has a default ENTRYPOINT which is /bin/sh -c but does not have a default CMD.
--entrypoint in docker run will overwrite the default entry point
I WANT TO CONNECT FROM A CONTAINER TO A SERVICE ON THE HOST The host has a changing IP address (or none if you have no network access). From 18.03 onwards our recommendation is to connect to the special DNS name host.docker.internal, which resolves to the internal IP address used by the host. This is for development purpose and will not work in a production environment outside of Docker Desktop for Mac. The gateway is also reachable as gateway.docker.internal. To avoid ModuleNotFoundError: No module named 'api'add this line to docker file ENV PYTHONPATH="$PYTHONPATH:/" and insure that init.py exists in necessary folders Appendix
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论