Message-Spam

Spam Detection using Naive Bayes

Overview

This project implements a simple web application for spam detection using Naive Bayes classification. It uses the Flask framework for the web interface and the scikit-learn library for the machine learning model.

Requirements

  • Python 3.x
  • Flask
  • pandas
  • scikit-learn

Installation

  1. Clone the repository:

    git clone https://github.com/umairchanna57/Message-Spam.git
    cd Message-Spam
    
    
    

pip install -r requirements.txt

Usage

Enter a message in the provided form. Click the "Predict" button to get the spam/ham prediction.

Dataset

The model is trained on the "Roman Urdu DataSet.csv" dataset, which is included in the project. It contains labeled messages with their corresponding categories.