A Python Flask application for classifying messages as spam or ham. The classification is based on existing data in the database, fetching LIKE data, and predicting the likelihood of a message being spam or ham.
This Spam Ham Classifier utilizes Python and Flask to provide predictions on messages. The classification is driven by analyzing existing data in the database and counting the most likely spam or ham occurrences.
- Python installed on your server.
- Flask for the web application.
- Database (e.g., using SQLite, MySQL, or another database system).
-
Clone the GitHub Repository:
git clone https://github.com/codeterrayt/SpamHamClassifier.git cd SpamHamClassifier
-
Setup the Database:
-
Create a database named
spam_detector
. -
Configure the database connection details in the Flask application.
-
-
Run the Application:
-
Execute the Flask application:
python main.py
-
Open your browser and navigate to
http://localhost:{port}
to use the Spam Ham Classifier.
-
-
Predict Spam or Ham:
-
Input a message into the application.
-
Get the prediction based on existing data in the database.
-
main.py
: Main Flask application file.templates/
: Folder containing HTML templates for the web application.static/
: Folder containing static files (CSS, images, etc.).
- This classifier is designed to make predictions based on existing data in the database.
- Ensure proper database configurations and connection details.
- The application is built using Python Flask for simplicity.
📧 Happy Classifying! 🚀