Member-only story

Make your Machine Learning Models Come Alive with Streamlit

Use this free Python library to quickly serve models and display data

Jeff Hale
Towards Data Science
13 min readJun 15, 2020

--

You made a machine learning model. Yippee! 😀 You want folks to be able to use it without firing up a Jupyter notebook. Hmm. 🤔 What should you do?

You could use Flask to serve your model. Flask is great lightweight web framework, but it requires knowing about routes and other web things. 😕 Django is a full-service framework, but with a steeper learning curve than Flask. If you just want to serve a model as quickly as possible, what should you use?

Streamlit to the rescue! With Streamlit you can serve a machine learning model in minutes, without learning a Javascript framework. 🚀

mountain with clouds
Source: Pixabay.com

Streamlit is a newish open source library that uses Python and integrates well with common data science libraries. It handles interactivity and visualizations very well.

To paraphrase co-founder Adrien Treuille, Streamlit apps are Python scripts that treat widgets as variables, can reuse data and computations, and can be developed in a live coding environment. Streamlit is great for rapid development!

Quick Start:

Getting started with Streamlit is as easy as:

--

--

Towards Data Science
Towards Data Science

Published in Towards Data Science

Your home for data science and AI. The world’s leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.

Jeff Hale
Jeff Hale

Written by Jeff Hale

I write about data things. Follow me on Medium and join my Data Awesome mailing list to stay on top of the latest data tools and tips: https://dataawesome.com

Responses (3)