This web application predicts the species of an iris flower based on its sepal and petal dimensions. It is built with Streamlit and uses a pre-trained machine learning model.
URL - https://joblib-example.onrender.com/
- Python 3.12.4
- Streamlit
- Scikit-learn
- Joblib
- Pandas
- Docker (optional, for containerization)
-
Clone the repository:
git clone https://github.com/utkarshg1/Joblib-example.git cd Joblib-example -
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python3 -m streamlit run app.py
Access the app at
http://localhost:8501.
To run the app with Docker:
-
Run the Docker container:
docker compose up --build
Access the app at
http://localhost:8501.
Once the app is running, input the sepal length, sepal width, petal length, and petal width. Click on "Predict" to get the predicted species and the corresponding probabilities.
Dockerhub Link - https://hub.docker.com/r/utkarshg1/streamlit-iris
This project is licensed under the MIT License. See the LICENSE file for details.
- The Iris dataset is sourced from the UCI Machine Learning Repository.
- Streamlit is used for the UI, and Scikit-learn is used for the machine learning model.