sanaullah7964's picture
Upload 3 files
51f9fe8 verified
|
Raw
History Blame Contribute Delete
1.54 kB

A newer version of the Streamlit SDK is available: 1.61.1

Upgrade
metadata
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

pip install -r requirements.txt
streamlit run app.py