--- title: AI vs Human Text Classifier emoji: ๐Ÿš€ colorFrom: indigo colorTo: pink sdk: streamlit sdk_version: 1.32.2 app_file: app.py pinned: false --- # ๐Ÿง  AI vs Human Text Detector This project is a machine learning-based system designed to distinguish between text written by a **human** and that generated by an **AI language model** (e.g., ChatGPT). It uses deep learning and text embeddings to analyze writing patterns and classify them accurately. --- ## ๐Ÿ“Œ Features - โœ… Binary classification: AI-generated vs Human-written text - ๐Ÿ“ˆ Achieved **92% accuracy** and **0.89 F1-Score** - ๐Ÿ” Embedding + Deep Learning model - ๐Ÿ“Š Evaluation on real-world prompts and datasets - ๐Ÿงช Trained and tested using clean, balanced samples --- ## ๐Ÿš€ Live Demo ๐Ÿ”— **[Try it on Hugging Face Spaces](https://huggingface.co/spaces/SerialGuy/ai-vs-human)** > Enter a piece of text and the model will predict whether it's written by an AI or a human. --- ## ๐Ÿ“‚ Repository Structure ```bash . โ”œโ”€โ”€ train_model.ipynb # Notebook to preprocess and train the model โ”œโ”€โ”€ requirements.txt # (Optional) Dependencies โ””โ”€โ”€ README.md # Project overview and instructions