The code for the Streamlit demo app discussed in the Deploying Machine Learning Models With Streamlit article.
-
Fetch the necessary files:
git clone https://github.com/Tim-Abwao/streamlit-demo-app.git cd streamlit-demo-app
-
Create a virtual environment, and install dependencies:
python3 -m venv venv source venv/bin/activate pip install -U pip pip install -r requirements.txt
-
Create and save a model:
python modelling.py
-
Launch the Streamlit app:
streamlit run streamlit_app.py