Spaces:
Sleeping
Sleeping
metadata
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 "Spam Email" using a pre-trained Hugging Face Transformers model.
Usage
- Enter the email body you want to classify in the text input box.
- Click the "Submit" button.
- The application will display "Safe Email" or "Spam 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.
Notes
- Ensure you have a stable internet connection if the application needs to download the tokenizer.
- The accuracy of the predictions depends on the quality and training of the underlying model.
- For optimal performance, ensure that the model files are compatible with the
transformers
library. - If the model files are not in the model directory, the application will attempt to download the tokenizer from the Hugging Face model hub. Ensure that the model name used in the app.py file is correct.
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference