Deploying Streamlit with Heroku
Heroku is a Platform as a Service owned by Salesforce, optimized as a generic compute platform that you can use for everything from websites to APIs to Streamlit apps. Because of this, you have many more options with Heroku than with either Streamlit Community Cloud or Hugging Face Spaces, but getting started takes more effort.
Please note that Heroku has no free tier, so if you do not want to follow along (or if you are already happy with Streamlit Community Cloud or Hugging Face Spaces), feel free to just skip to the next chapter! The reason Heroku is included in this book is that I wanted to provide an option that had more capacity, supported the most recent Streamlit versions without much branding, and was easy to use. Heroku is the best platform on those metrics, so I’ll cover it below!
To deploy our Streamlit apps on Heroku, we need to do the following:
- Set up and log in to Heroku.
- Clone and configure our local...