File size: 1,217 Bytes
06883de
 
 
 
 
d4257f9
474060f
06883de
 
 
d4e4738
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91681fc
d4e4738
 
 
 
 
 
 
 
 
 
 
 
91681fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
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