Skip to content

๐ŸŒธ A beginner-friendly Streamlit web app that predicts Iris flower species using a Random Forest classifier. Interactive, educational, and deployed on Streamlit Cloud.

License

Notifications You must be signed in to change notification settings

muzammaldeveloper/iris-flower-classifier-streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Iris Flower Prediction App ๐ŸŒธ

A beginner-friendly Streamlit web application to classify Iris flower species using a Random Forest model. Built for fast, interactive predictions and educational exploration of classic machine learning concepts.


๐ŸŒŸ Features

  • Interactive Input: Adjust sepal and petal measurements with sidebar sliders.
  • Live Predictions: Instantly predict the Iris species and view probability scores.
  • Dataset Explorer: Preview the Iris dataset and feature statistics.
  • Feature Importance: Visualize which features matter most in classification.
  • Clean UI: Simple, responsive dashboard for desktop and mobile.

๐ŸŒ Live Demo

Try the app instantly, no installation required:
https://iris-flower-classifier-app-ckb78utfqdnawpqvn2amy6.streamlit.app/


๐Ÿ–ผ๏ธ Screenshots

Add images to the images/ folder and update paths below.

  • App Home:
    App Home

  • Prediction Result:
    Prediction Output

  • Feature Importance Chart:
    Feature Importance


๐Ÿ› ๏ธ Tech Stack


๐Ÿ“ฆ Installation

  1. Clone the repository:

    git clone https://github.com/muzammaldeveloper/iris-flower-classifier-streamlit.git
    cd iris-flower-classifier-streamlit
  2. Install dependencies:

    pip install -r requirements.txt

๐Ÿš€ Usage

Launch the app locally:

streamlit run app.py
  • Use the sidebar sliders to input flower features.
  • View the prediction and probabilities instantly.
  • Explore dataset and feature importance charts.

๐Ÿ“ Project Structure

iris-flower-classifier-streamlit/
โ”œโ”€โ”€ app.py                # Main Streamlit app
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ iris.csv          # Iris dataset
โ”œโ”€โ”€ images/
โ”‚   โ”œโ”€โ”€ app_home.png      # Screenshot: Home
โ”‚   โ”œโ”€โ”€ prediction_output.png    # Screenshot: Prediction
โ”‚   โ””โ”€โ”€ feature_importance.png   # Screenshot: Feature importance chart
โ”œโ”€โ”€ requirements.txt      # Python dependencies
โ””โ”€โ”€ README.md             # Project documentation

๐Ÿ”ฎ Future Improvements

  • Add model comparison (SVM, KNN, etc.)
  • Enable model retraining with custom data
  • Deploy app on cloud platforms (Streamlit Cloud, Hugging Face Spaces)
  • Add multi-language support
  • Improve mobile responsiveness

๐Ÿค Contributing

Contributions are welcome!
If you find a bug or want to add a feature:

  1. Fork this repo.
  2. Create a new branch (git checkout -b feature-name).
  3. Commit your changes with clear messages.
  4. Open a pull request describing your changes.

For questions or suggestions, feel free to open an issue.


๐Ÿ“ฌ Contact


๐Ÿ‘จโ€๐Ÿ’ป About the Developer

Muzammal Hussain
Passionate AI developer and community builder from Pakistan. Focused on making machine learning accessible for everyone, especially learners in low-resource environments.

Connect, learn, and build with me!


Made with โค๏ธ using Python and Streamlit.

About

๐ŸŒธ A beginner-friendly Streamlit web app that predicts Iris flower species using a Random Forest classifier. Interactive, educational, and deployed on Streamlit Cloud.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages