From the course: Data Science Methodologies: Making Business Sense

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Consume the model

Consume the model

- [Instructor] So far, I have completed the code for model API and hosted it on local host at port 5000. Now, I need to code the web app that will consume this API and then host it on localhost at port 8082. Before we look at the code, let me show you a demo of what we are trying here. I have opened an instance of Flask temporarily for this demo and my web app is running at this URL. Not fancy, right? Remember, this is the minimum viable product. Something with bare bones functionality without any frills. We need to keep it simple in the beginning. This is index.html file that has a form where I can enter some values, say 25 for age, management for job, marital status single, education secondary, default no, balance, let's say 1000, housing yes, and let's say loan is no. As I submit my inputs, I'll get a prediction along with the values I input for reference. So, this is what we are trying to build here. Let me, now,…

Contents