Why use Django when Flask is so much simpler and has less overhead?
For just a REST ML model endpoint, Flask does everything you need, and no more. It's a perfect fit.
For just a REST ML model endpoint, Flask does everything you need, and no more. It's a perfect fit.
If we are talking speed and simplicity then I would father go with Fast Api rather than flask.
In Flask you need to add many things to make it usable.
If you check the code of the tutorial you will see that it differs from the most of the ML-to-REST-API tutorials. It's not only setting the endpoint. You can have many algorithms with many versions and stages (testing, production). There is A/B testing example. Of course you can do all in Flask but I prefer Django because many things are there already.