matesoft's picture
Update README.md
5970059 verified

A newer version of the Gradio SDK is available: 5.37.0

Upgrade
metadata
license: mit
sdk: gradio

license: mit

🧠 Disease Symptom Prediction AI

Python License Issues

AI-powered tool that predicts possible diseases based on symptoms using a trained machine learning model and provides chatbot-style suggestions.


πŸ“ Project Structure

disease-symptom-prediction/
β”œβ”€β”€ data/               # Excel dataset (not uploaded)
β”‚   └── README.md       # Instructions for downloading from Kaggle
β”‚
β”œβ”€β”€ src/                # Source code
β”‚   β”œβ”€β”€ data_preprocessing.py   # Cleans & prepares dataset
β”‚   β”œβ”€β”€ model.py                # Trains and saves the ML model
β”‚   β”œβ”€β”€ predict.py              # Predicts disease from symptoms
β”‚   └── chatbot.py              # Symptom-checker chatbot logic
β”‚
β”œβ”€β”€ app/                # App interface
β”‚   └── gradio_app.py   # Gradio-based web UI
β”‚
β”œβ”€β”€ models/             # Trained model files
β”‚   └── rf_model.pkl
β”‚
β”œβ”€β”€ notebooks/          # Jupyter notebooks for analysis
β”‚   β”œβ”€β”€ 1_data_exploration.ipynb
β”‚   β”œβ”€β”€ 2_preprocessing_test.ipynb
β”‚   └── 3_model_testing.ipynb
β”‚
β”œβ”€β”€ requirements.txt    # Python dependencies
β”œβ”€β”€ .gitignore
└── README.md

βš™οΈ Installation

1. Clone the repository

git clone https://github.com/your-username/disease-symptom-prediction.git
cd disease-symptom-prediction

2. Create virtual environment (optional but recommended)

python -m venv venv
source venv/bin/activate   # On Windows: venv\Scripts\activate

3. Install dependencies

pip install -r requirements.txt

πŸš€ Run the App

python app/gradio_app.py

The app will start locally and you can open it in your browser at http://localhost:7860.


πŸ€– Features

  • βœ… Predict disease from symptoms
  • 🧠 Trained on structured healthcare dataset
  • πŸ’¬ Chatbot-style health advice
  • πŸ–₯️ User-friendly Gradio interface

πŸ“¦ Dataset Note (Click to expand)

We use a healthcare dataset available on Kaggle. Due to licensing, it is not uploaded in this repo. Please download it manually and place it in the data/ directory.


πŸͺͺ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Credits

Created by Mate β€” feel free to fork, star, or contribute.