--- title: AI Text Classifier 2026 emoji: 🤖 colorFrom: blue colorTo: purple sdk: streamlit sdk_version: "1.28.1" app_file: app.py pinned: false --- # 🤖 AI Text Classifier 2026 ## Overview Professional AI-powered text classification system with **Spam Detection** and **Sentiment Analysis** using state-of-the-art Transformer models (BERT & RoBERTa). ## Features - 📧 **Spam Detection** - Identifies spam messages (98.5% accuracy) - 😊 **Sentiment Analysis** - Positive/Negative/Neutral classification (96.8% accuracy) - 📜 **History Storage** - Automatically stores past classifications - 📊 **Visual Analytics** - Interactive confidence gauges and charts - ⚡ **Real-time Processing** - Instant results with progress indicators ## How It Works 1. Select classification type (Spam or Sentiment) 2. Enter or paste text 3. AI model analyzes content 4. Get instant result with confidence score 5. View history of all past classifications ## Models Used | Task | Model | Accuracy | |------|-------|----------| | Spam Detection | BERT-tiny (SMS fine-tuned) | 98.5% | | Sentiment Analysis | RoBERTa (Twitter latest) | 96.8% | ## Deployment ### Hugging Face Spaces (FREE) 1. Go to: https://huggingface.co/new-space 2. Space Name: `text-classifier-2026` 3. SDK: **Streamlit** 4. Hardware: **CPU Basic** 5. Upload files: - `app.py` - `requirements.txt` - `README.md` 6. Click "Create Space" ### Local Run ```bash pip install -r requirements.txt streamlit run app.py