ai-text-humanizer / README_deployment.md
SidddhantJain
Complete working file is deployed
5ed41a9

A newer version of the Gradio SDK is available: 5.42.0

Upgrade

πŸ€–βž‘οΈπŸ‘¨ AI Text Humanizer & Detector Pro

Python Gradio Deployment License

Hugging Face Spaces Railway Render

🌐 Deploy your AI humanizer to the cloud with one click

πŸš€ Quick Deploy β€’ πŸ“– Documentation β€’ πŸ”§ Setup Guide β€’ πŸ’‘ Examples β€’ πŸ†˜ Support


A comprehensive web application for transforming AI-generated text into natural, human-like writing while providing advanced AI detection capabilities.

✨ Features

AI Detection Text Humanization Web Interface

🎭 Text Humanizer

  • πŸ”„ Advanced Vocabulary Enhancement
  • πŸ“ Sentence Flow Optimization
  • πŸ—οΈ Structure Diversification
  • πŸŽ“ Academic Tone Preservation
  • ⚑ Multi-level Processing

Humanizer

πŸ•΅οΈ AI Detector

  • 🎯 7-Point Analysis System
  • πŸ“Š Detailed Scoring Breakdown
  • πŸ” Confidence Level Assessment
  • πŸ€– Pattern Recognition Engine
  • ⚑ Real-time Analysis

Detection

πŸ”„ Combined Processing

  • πŸš€ One-Click Workflow
  • πŸ” Optimization Loop
  • βœ… Quality Validation
  • πŸ“Š Performance Metrics
  • 🎯 Result Verification

Combined

πŸš€ Live Demo

Visit the live application: Hugging Face Spaces

πŸ“¦ Installation

Installation

πŸ”§ Local Development Setup

πŸ“‹ System Requirements
Component Requirement Recommended
Python 3.8+ 3.9+
RAM 4GB+ 8GB+
Storage 2GB+ 5GB+
Internet For models Stable connection

πŸš€ Quick Start

# πŸ“₯ 1. Clone Repository
git clone https://github.com/SidddhantJain/Humaniser-Sid.git
cd Humaniser-Sid

# 🐍 2. Setup Environment  
python -m venv .venv
.venv\Scripts\activate  # Windows
source .venv/bin/activate  # Linux/Mac

# πŸ“¦ 3. Install Dependencies
pip install -r requirements.txt

# πŸš€ 4. Launch Application
python app.py

Success

πŸ“‹ Dependencies

🎯 Core Dependencies

gradio==4.44.0          # Web interface
transformers==4.35.0    # AI models
torch==2.1.0           # Deep learning
nltk==3.8.1            # Language processing

πŸ”§ Supporting Libraries

textstat==0.7.3        # Text analysis
numpy==1.24.3          # Numerical computing
pandas==2.0.3          # Data manipulation
protobuf               # Model serialization

πŸ› οΈ Technical Details

Humanization Algorithms

  • Vocabulary Diversification: WordNet-based synonym replacement
  • Structural Variation: Sentence pattern modification
  • Natural Flow Enhancement: Academic connector and hedge phrase insertion
  • Linguistic Pattern Breaking: AI-specific phrase elimination

AI Detection Metrics

  1. AI Phrase Detection: Identifies common AI-generated expressions
  2. Vocabulary Repetition: Analyzes overuse of academic terms
  3. Structure Patterns: Detects repetitive sentence starters
  4. Transition Overuse: Measures excessive formal connectors
  5. Formal Pattern Recognition: Identifies robotic phrasing
  6. Sentence Consistency: Analyzes unnatural uniformity
  7. Readability Assessment: Evaluates writing naturalness

πŸ“ˆ Usage Examples

Input (AI-Generated):

The implementation of artificial intelligence algorithms demonstrates significant improvements in computational efficiency and accuracy metrics across various benchmark datasets.

Output (Humanized):

AI algorithms show notable improvements in both computational efficiency and accuracy when tested across different benchmark datasets. These results indicate considerable advances in performance.

πŸ”§ Configuration

Humanization Levels:

  • Light: Basic vocabulary substitution
  • Medium: Vocabulary + natural flow enhancement
  • Heavy: All techniques including structure modification

AI Detection Thresholds:

  • 0-20%: Likely human-written
  • 21-40%: Possibly AI-generated
  • 41-60%: Probably AI-generated
  • 61-80%: Likely AI-generated
  • 81-100%: Very likely AI-generated

🌐 Deployment Options

Deployment Options

πŸ€— Hugging Face Spaces

⭐ RECOMMENDED - FREE

HF Spaces

βœ… Benefits:

  • πŸ†“ Completely FREE forever
  • ⚑ Auto-deployment from files
  • 🌍 Global CDN (fast worldwide)
  • πŸ”’ SSL certificate included
  • πŸ› οΈ No coding required
  • πŸ“± Mobile-friendly interface

πŸš€ Deploy Steps:

  1. Go to huggingface.co/spaces
  2. Click "Create new Space"
  3. Choose Gradio SDK
  4. Upload app.py & requirements.txt
  5. ✨ Auto-deploy in 2-3 minutes!

πŸš‚ Railway

πŸ’° FREE TIER AVAILABLE

Railway

βœ… Benefits:

  • 🎯 GitHub integration
  • πŸ”„ Auto-deploy on push
  • πŸ’Ύ Persistent storage
  • πŸ“Š Built-in monitoring
  • πŸ”§ Environment variables
  • πŸ’³ Credit card not required

πŸš€ Deploy Steps:

  1. Push code to GitHub
  2. Go to railway.app
  3. "Deploy from GitHub repo"
  4. Select your repository
  5. πŸŽ‰ Railway auto-detects & deploys

🎨 Render

πŸ’° FREE TIER AVAILABLE

Render

βœ… Benefits:

  • πŸ”— GitHub integration
  • πŸ”’ Free SSL certificates
  • πŸ”„ Automatic deploys
  • πŸ“ˆ Scalable infrastructure
  • πŸ’» Custom domains
  • πŸ“Š Real-time logs

πŸš€ Deploy Steps:

  1. Push to GitHub
  2. Go to render.com
  3. "New Web Service"
  4. Connect GitHub repo
  5. Set build: pip install -r requirements.txt
  6. Set start: python app.py

πŸ₯‡ Recommended: Hugging Face Spaces

Why HF

Feature Hugging Face Railway Render
πŸ’° Cost Free Free Free
⚑ Setup Time Fast Medium Medium
πŸ› οΈ Configuration None Basic Medium
🌍 Global CDN Yes Limited Yes
πŸ“± Mobile Optimized Perfect Good Good

βš–οΈ Ethical Usage

This tool is designed for:

  • βœ… Improving writing quality and naturalness
  • βœ… Educational purposes and learning
  • βœ… Understanding AI detection mechanisms
  • βœ… Research and development

Important Guidelines:

  • 🚫 Do not use for plagiarism or academic dishonesty
  • 🚫 Do not violate institutional policies
  • 🚫 Do not misrepresent authorship
  • βœ… Maintain transparency about AI assistance
  • βœ… Follow academic integrity guidelines

🀝 Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for:

  • Bug fixes
  • Feature enhancements
  • Algorithm improvements
  • Documentation updates

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • NLTK team for natural language processing tools
  • Hugging Face for hosting and deployment platform
  • Gradio team for the web interface framework
  • Open source community for various libraries and tools

πŸ“ž Support

For questions, issues, or suggestions:


Disclaimer: This tool is for educational and research purposes. Users are responsible for ensuring compliance with their institution's policies and maintaining academic integrity.