Streamlit Examples That Motivates Data Scientists to Create Web Apps
Tags: webdev, machinelearning, datascience, python
Published: 2021-11-24 15:46:00

Streamlit is a fantastic tool for creating web applications quickly for machine learning projects. 

Generally, creating a web interface to interact with backend machine learning algorithms is a tedious task. You need to have an entirely different skillset to develop software products. These are not the kind of tools typical data scientists use on a daily basis. 

Yet, the solutions are obvious. Hire a team of web developers to work along with your data team. Hire a front-end specialist who does React or Vue. Hire backend developers who know frameworks such as Django or Flask in and out. 

Wrong!

Adding more items to your technology stack will exponentially increase the complexity of your projects. Instead of helping with simplifying things, the new team of experts will have to spend a ton of their time and your data team's time in meetings. 

If that's not going to solve the problem, then what will?

Streamlit could!

Streamlit helps data scientists to create web wrappers for their machine learning model in a declarative fashion. All they need is Python which most data scientists use in their everyday tasks. 

Before diving in, here's a quickstart tutorial I wrote about Streamlit. I've shared an example where you could train a K-means clustering model by specifying the number of clusters in the UI. This might sound simple, but it's sufficient to teach the basics of Streamlit. 

[Streamlit basic example](https://share.streamlit.io/thuwarakeshm/streamlit-intro/main/quickstart.py#interactive-k-means-clustering)
[Source code for Streamlit app](https://github.com/ThuwarakeshM/Streamlit-Intro)
[Blog post](https://www.the-analytics.club/how-to-create-stunning-web-apps-for-your-data-science-projects)


Here are some awesome example sites created with Streamlit. 

## 1. Game of Thrones Analysis by Mario Vishal.

This visualization interactively shows different insights about popular TV series. You can select your favorite character and the app will tell you interesting facts such as the number of dialogues your selected character has spoken.

[Live app](https://got-streamlit.herokuapp.com/)
[Source code](https://github.com/Mario-Vishal/Game_Of_Thrones_Analysis)

## 2. Music Through the Ages by Tanul Mathur

This amazing Streamlit example is helpful for learning the Streamlit layout primitives. It simply devices the section into columns and displays different graphs on each of them.

[Live app](https://share.streamlit.io/tanul-mathur/music-through-the-ages/AppFinal.py)
[Source code](https://github.com/tanul-mathur/music-through-the-ages)

## 3. Climate Changes Between 1980-2020 by Dan Becker

Maps are perhaps the tricky thing on a web app to add interactiveness. This app is a basic example of how to do precisely that. You can hover over different places to see environmental matrices, and when you click on them, you get to see a time series view of the same. 

[Live app](https://share.streamlit.io/dansbecker/weather-analytics/main)
[Source code](https://github.com/dansbecker/weather-analytics)

## 4. Blood Cell Count Object Detection by Matthew Brems

This cool Streamlit app helps differentiate white blood cells and red blood cells from an image of the blood sample. You can set confidence thresholds and overlap thresholds to control the object detection too. 

[Live app](https://share.streamlit.io/matthewbrems/streamlit-bccd)
[Source code](https://github.com/matthewbrems/streamlit-bccd)

## 5. Commic me by Nathan Nguyen

Comic me is an interesting application that turns an image into a cartoon-like character. This app uses the CycleGAN structure to get it working. 

[Live app](https://share.streamlit.io/nathannguyen-dev/comic_me_v1/main.py)
[Source code](https://github.com/NathanNguyen-Dev/Comic_Me_V1)

---
Did you like what you read? [**_Consider subscribing to my email newsletter_**](https://thuwarakesh.medium.com/subscribe)  because I post more like this frequently. 

Thanks for reading, friend! Say Hi to me on [LinkedIn](https://www.linkedin.com/in/thuwarakesh/), [Twitter](https://twitter.com/Thuwarakesh), and [Medium](https://thuwarakesh.medium.com/).