Hi Friends , am trying to understand to see how can I use these machine learning models as a service. i.e. say I create a ML model, which can differentiate between cats and dogs. Now I want to create an API (web service), which can take in a photo and use this trained model, to give me back a response indicating whether the image I shared is a Cat or a Dog. Pls provide me some pointers on how to implement such a service. Pls let me know if you need more information. Thanks.
Since your application is already written in Python, you can take a look at Python Webframeworks. A very simple and easy one to get started is flask.
I’ve seen a few people asking questions like this so I just posed some code that I wrote to wrap the CNN from lesson 2 as a simple flask app that lets the user upload an image, the model predicts class probabilities, then the user sees the result on the next page.
You can find it here: