PyCaret and Streamlit: How to Create and Deploy Data Science Web App

Building a wine classifier with PyCaret and using Streamlit to create and deploy the web app

Ruben Winastwan
Towards Data Science

Photo by Terry Vlisidis on Unsplash

Building and deploying a machine learning model have never been easier. Right now, we have a lot of frameworks and libraries that enable us to build machine learning models with just a few lines of code. Among all of them, PyCaret is one of the best. To create and deploy a web app for our data science project, Streamlit has become very popular lately.

In this article, we will use these two libraries to create a data science web app. We’re going to use PyCaret to build a wine quality classifier. Next, we’re going to use Streamlit to create and deploy this wine classifier. You’ll be surprised of how easy and quick it is to build the classifier and deploy the web app with these two libraries. So, let’s get started!

Load and Preprocess the Data

The data that we will use in this article is the Wine Quality dataset, which you can download for free here. This dataset consists of 1599 instances with 12 features. Let’s load the dataset with Pandas.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (7)

What are your thoughts?

With PyCaret 2.2.3 and streamlit 0.73.1 a simple catboost model and pipeline hosted by a streamlit app takes 574MB which exceeds the Free tier Heroku dyno size of 500MB. I hope the PyCaret team can provide a streamlined module for…...

--

Hi. 1st part it awesome. but I honestly failed to understand How to open Streamlit app on local machine (
Starting form "Build the Web App with Streamlit"
- Should it be open on a same notebook or it should be another file (python)?
- How to find this "your_python_file.py"?

--