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.

Deploy the app

Deploy the app

- [Instructor] Now that our model is available as an API at our staging server, we can move our web application to Git, and then to Heroku as well. So let us go ahead and set things up on Dev machine. Like we did in the previous lesson, we need to install gunicorn, create Procfile, and then requirements txt to prepare our code for Heroku. But before we do that, we also need to change the API URL in routes.py to point to the model deployed on Heroku. So I'll first go to Heroku, and then open up the app through the pipe, and you can see the familiar error message. You can append API, which will then, again, take you to that bad request page. This is the URL I want to copy, and then go to routes.py. And if you scroll down to line number 33 where URL is defined, I need to change this, so let me comment this out, and then redefine URL equals the new URL I just now copied. Next I'm going to do those three steps, "pip…

Contents