Email_classifier / README.md
benjika's picture
Update README.md
2fa85a4 verified
---
title: Email Classifier
emoji: 🏢
colorFrom: pink
colorTo: indigo
sdk: gradio
sdk_version: 5.23.1
app_file: app.py
pinned: false
short_description: Classify Span Or not Spam
---
# Gradio Spam Email Classifier
This Gradio application classifies email bodies as either "Safe Email" or "Phishing Email" using a pre-trained Hugging Face Transformers model.
## Usage
1. **Enter the email body** you want to classify in the text input box.
2. **Click the "Submit" button.**
3. **The application will display "Safe Email" or "Phishing Email"** based on the model's prediction.
## Model
The application uses a pre-trained Hugging Face Transformers model for text classification. The model files (`config.json`, `pytorch_model.bin`,'special_tokens_map.json', 'tokenizer_config.json', 'vocab.txt') should be located in the `./model` directory. The tokenizer files are also required, and will be downloaded if they are not already present.
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference