A Streamlit-based web application for predicting breast cancer types based on preprocessed input features. Users select values from predefined options, and the app outputs the predicted cancer type using a trained machine learning model.
- Interactive UI with
st.number_input,st.selectbox, and other input widgets. - Backend preprocessing already applied; user only selects values.
- Handles prediction with a trained ML model.
- Clean, user-friendly interface.
- Clone the repository:
git clone https://github.com/yourusername/breast-cancer-streamlit.git
cd breast-cancer-streamlitpython -m venv venv
# Linux/Mac
source venv/bin/activate
# Windows
venv\Scripts\activatepip install -r requirements.txtbreast-cancer-streamlit/
│
├── main.py # Streamlit app
├── model.pkl # Trained ML model
├── requirements.txt # Dependencies
├── README.md
└── data/ # Optional folder for input CSV or preprocessed datastreamlit run main.pyOpen the URL provided in the terminal (usually http://localhost:8501) to access the app.
- Python 3.9+
- Streamlit
- scikit-learn
- pandas
- numpy
Install all dependencies via:
pip install -r requirements.txtDeveloped by Muhammad Fiaz