Skip to content

RodolfoFerro/streamlit-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of an ML web app using Streamlit 🌱

GitHub last commit GitHub repo size GitHub
Twitter LinkedIn
Slides

This repository contains code to build a Streamlit web app that serves an Iris classifier.

Prerequisities

Before you begin, ensure you have met the following requirements:

Setup

To install the dependencies, you can simply follow this steps.

Clone the project repository:

git clone https://github.com/RodolfoFerro/streamlit-example.git
cd streamlit-example

To create and activate the virtual environment, follow these steps:

Using conda

$ conda create -n streamlit python=3.7

# Activate the virtual environment:
$ conda activate streamlit

# To deactivate (when you're done):
(streamlit)$ conda deactivate

Using virtualenv

# In this case I'm supposing that your latest python3 version is 3.7
$ virtualenv streamlit --python=python3

# Activate the virtual environment:
$ source streamlit/bin/activate

# To deactivate (when you're done):
(streamlit)$ deactivate

To install the requirements using pip, once the virtual environment is active:

(streamlit)$ pip install -r requirements.txt

Running the script

Finally, if you want to run the main script:

(streamlit)$ streamlit run app.py

Extend code!

Please feel free to use this repo as a template to extend code!

About

Example of ML app using Streamlit.

Topics

Resources

License

Stars

Watchers

Forks

Languages