Making your model deployments available to others
In Chapter 7, Deployment and Model Maintenance, you deployed a couple of fastai models. To get a prediction, you pointed your browser to localhost:5000
and that opened up home.html
where you set your scoring parameters, requested a prediction, and then got a prediction back in show-prediction.html
. All this happened on your local system. Through the web deployments done in Chapter 7, Deployment and Model Maintenance, you can only get to the deployment on your local system because localhost
is only accessible on your local system. What if you wanted to share these deployments with friends to allow them to try out your models on their own computers?
The simplest way to do this is using a tool called ngrok that lets you share localhost
on your computer with people working on other computers. In this recipe, we will go through steps that show you how to use ngrok to make your deployments available to others.
Getting ready
Follow...