Building UI using Streamlit
Explore how to build a classification web app using Streamlit by adding UI components like titles and sidebars, displaying datasets, visualizing data with PCA plots, and showing model accuracy. This lesson guides you through integrating Scikit-learn classifiers and creating an interactive interface for user inputs and predictions.
We'll cover the following...
We'll cover the following...
Add UI components
Firstly, we’ll add a title and description for the interface.
import streamlit as st
# Title
st.title("Classifiers in Action")
# Description
st.text("Choose a Dataset and a Classifier in the sidebar. Input your values and get a prediction.")
Add the sidebar
Let’s add a sidebar to display the sliders on the Streamlit web interface.
...