#NoPayJan Offer - Access all CloudxLab Courses for free between 1st to 31st JanEnroll Now >>
To host an app on Heroku, we need to create an account for ourselves on the platform.
Once we log-in, we choose the option to link the GitHub repository to Heroku.
Heroku then provides us the option to deploy(either automatically or manually). It installs the necessary dependencies as per the
requirements.txt and sets all the configurations as per the
After Heroku does all such background work to host our app, it provides the link to the app.
We could browse through that link and use our app.
Go to Heroku
Sign up to register yourself on Heroku.
Click on New -> Create new app on the top-right corner of the page.
Mention the app name, like my-image-class-app and click on Create app button.
Within some seconds, we will be displayed the following page. Click on GitHub option and enter the name of the GitHub repository of the project.
Now click on Connect button corresponding to the repository name.
An Automatic Deployment mode readily makes live all the changes committed to GitHub. Let us choose Manual Deployment mode so that we could have more control over what we are making live on to the platform.
The above action displays the below response, where we observe that Heroku is installing the dependencies as mentioned in the
requirements.txt file. Heroku also configures the setting as mentioned in the
Procfile. So along with the project files, these two are the 2 important files that should be present in our GitHub repository.
Heroku finally returns us the URL of our hosted web app after completing the set-up process, so wait till you could see a URL, as shown below.
Copy the link and open it in a new tab. It displays the home-page of the app as shown below:
Hola! Go ahead and upload an image to see the top 3 predictions.
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here