Docs :added the readme.md
Browse filesFiles changed (4)
- README.md+145-15
- READMEs.mdDeleted-152
- readmes.mdDeleted-9
- test.mdDeleted-31
12345678910111213141516171819202122---title: Testing AI Containemoji: π€colorFrom: bluecolorTo: greensdk: dockersdk_version: "latest"app_file: app.pypinned: false---# Testing AI ContainThis Hugging Face Space uses **Docker** to run a custom environment for AI content detection.## How to run locally```bashdocker build -t testing-ai-contain .docker run -p 7860:7860 testing-ai-contain```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152# AI-Contain-CheckerA modular AI content detection system with support for **image classification**, **image edit detection**, **Nepali text classification**, and **general text classification**. Built for performance and extensibility, it is ideal for detecting AI-generated content in both visual and textual forms.## π Features### πΌοΈ Image Classifier* **Purpose**: Classifies whether an image is AI-generated or a real-life photo.* **Model**: Fine-tuned **InceptionV3** CNN.* **Dataset**: Custom curated dataset with **\~79,950 images** for binary classification.* **Location**: [`features/image_classifier`](features/image_classifier)* **Docs**: [`docs/features/image_classifier.md`](docs/features/image_classifier.md)### ποΈ Image Edit Detector* **Purpose**: Detects image tampering or post-processing.* **Techniques Used**:* **Error Level Analysis (ELA)**: Visualizes compression artifacts.* **Fast Fourier Transform (FFT)**: Detects unnatural frequency patterns.* **Location**: [`features/image_edit_detector`](features/image_edit_detector)* **Docs**:* [ELA](docs/detector/ELA.md)* [FFT](docs/detector/fft.md )* [Metadata Analysis](docs/detector/meta.md)* [Backend Notes](docs/detector/note-for-backend.md)### π Nepali Text Classifier* **Purpose**: Determines if Nepali text content is AI-generated or written by a human.* **Model**: Based on `XLMRClassifier` fine-tuned on Nepali language data.* **Dataset**: Scraped dataset of **\~18,000** Nepali texts.* **Location**: [`features/nepali_text_classifier`](features/nepali_text_classifier)* **Docs**: [`docs/features/nepali_text_classifier.md`](docs/features/nepali_text_classifier.md)### π English Text Classifier* **Purpose**: Detects if English text is AI-generated or human-written.* **Pipeline**:* Uses **GPT2 tokenizer** for input preprocessing.* Custom binary classifier to differentiate between AI and human-written content.* **Location**: [`features/text_classifier`](features/text_classifier)* **Docs**: [`docs/features/text_classifier.md`](docs/features/text_classifier.md)---## ποΈ Project Structure```bashAI-Checker/ββββ app.py # Main FastAPI entry pointβββ config.py # Configuration settingsβββ Dockerfile # Docker build scriptβββ Procfile # Deployment file for Heroku or similarβββ requirements.txt # Python dependenciesβββ README.md # You are here πββββ features/ # Core detection modulesβ βββ image_classifier/β βββ image_edit_detector/β βββ nepali_text_classifier/β βββ text_classifier/ββββ docs/ # Internal and API documentationβ βββ api_endpoints.mdβ βββ deployment.mdβ βββ detector/β β βββ ELA.mdβ β βββ fft.mdβ β βββ meta.mdβ β βββ note-for-backend.mdβ βββ functions.mdβ βββ nestjs_integration.mdβ βββ security.mdβ βββ setup.mdβ βββ structure.mdββββ IMG_Models/ # Saved image classifier model(s)β βββ latest-my_cnn_model.h5ββββ notebooks/ # Experimental and debug notebooksβββ static/ # Static assets if neededβββ test.md # Test notes````---## π Documentation Links* [API Endpoints](docs/api_endpoints.md)* [Deployment Guide](docs/deployment.md)* [Detector Documentation](docs/detector/)* [Error Level Analysis (ELA)](docs/detector/ELA.md)* [Fast Fourier Transform (FFT)](docs/detector/fft.md)* [Metadata Analysis](docs/detector/meta.md)* [Backend Notes](docs/detector/note-for-backend.md)* [Functions Overview](docs/functions.md)* [NestJS Integration Guide](docs/nestjs_integration.md)* [Security Details](docs/security.md)* [Setup Instructions](docs/setup.md)* [Project Structure](docs/structure.md)---## π Usage1. **Install dependencies**```bashpip install -r requirements.txt```2. **Run the API**```bashuvicorn app:app --reload```3. **Build Docker (optional)**```bashdocker build -t ai-contain-checker .docker run -p 8000:8000 ai-contain-checker```---## π Security & Integration* **Token Authentication** and **IP Whitelisting** supported.* NestJS integration guide: [`docs/nestjs_integration.md`](docs/nestjs_integration.md)* Rate limiting handled using `slowapi`.---## π‘οΈ Future Plans* Add **video classifier** module.* Expand dataset for **multilingual** AI content detection.* Add **fine-tuning UI** for models.---## π LicenseSee full license terms here: [`LICENSE.md`](license.md)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152# AI-Contain-Checker
A modular AI content detection system with support for **image classification**, **image edit detection**, **Nepali text classification**, and **general text classification**. Built for performance and extensibility, it is ideal for detecting AI-generated content in both visual and textual forms.
## π Features
### πΌοΈ Image Classifier
* **Purpose**: Classifies whether an image is AI-generated or a real-life photo.* **Model**: Fine-tuned **InceptionV3** CNN.* **Dataset**: Custom curated dataset with **\~79,950 images** for binary classification.* **Location**: [`features/image_classifier`](features/image_classifier)* **Docs**: [`docs/features/image_classifier.md`](docs/features/image_classifier.md)
### ποΈ Image Edit Detector
* **Purpose**: Detects image tampering or post-processing.* **Techniques Used**:
* **Error Level Analysis (ELA)**: Visualizes compression artifacts. * **Fast Fourier Transform (FFT)**: Detects unnatural frequency patterns.* **Location**: [`features/image_edit_detector`](features/image_edit_detector)* **Docs**:
* [ELA](docs/detector/ELA.md) * [FFT](docs/detector/fft.md ) * [Metadata Analysis](docs/detector/meta.md) * [Backend Notes](docs/detector/note-for-backend.md)
### π Nepali Text Classifier
* **Purpose**: Determines if Nepali text content is AI-generated or written by a human.* **Model**: Based on `XLMRClassifier` fine-tuned on Nepali language data.* **Dataset**: Scraped dataset of **\~18,000** Nepali texts.* **Location**: [`features/nepali_text_classifier`](features/nepali_text_classifier)* **Docs**: [`docs/features/nepali_text_classifier.md`](docs/features/nepali_text_classifier.md)
### π English Text Classifier
* **Purpose**: Detects if English text is AI-generated or human-written.* **Pipeline**:
* Uses **GPT2 tokenizer** for input preprocessing. * Custom binary classifier to differentiate between AI and human-written content.* **Location**: [`features/text_classifier`](features/text_classifier)* **Docs**: [`docs/features/text_classifier.md`](docs/features/text_classifier.md)
---
## ποΈ Project Structure
```bashAI-Checker/ββββ app.py # Main FastAPI entry pointβββ config.py # Configuration settingsβββ Dockerfile # Docker build scriptβββ Procfile # Deployment file for Heroku or similarβββ requirements.txt # Python dependenciesβββ README.md # You are here πββββ features/ # Core detection modulesβ βββ image_classifier/β βββ image_edit_detector/β βββ nepali_text_classifier/β βββ text_classifier/ββββ docs/ # Internal and API documentationβ βββ api_endpoints.mdβ βββ deployment.mdβ βββ detector/β β βββ ELA.mdβ β βββ fft.mdβ β βββ meta.mdβ β βββ note-for-backend.mdβ βββ functions.mdβ βββ nestjs_integration.mdβ βββ security.mdβ βββ setup.mdβ βββ structure.mdββββ IMG_Models/ # Saved image classifier model(s)β βββ latest-my_cnn_model.h5ββββ notebooks/ # Experimental and debug notebooksβββ static/ # Static assets if neededβββ test.md # Test notes````
---
## π Documentation Links
* [API Endpoints](docs/api_endpoints.md)* [Deployment Guide](docs/deployment.md)* [Detector Documentation](docs/detector/)
* [Error Level Analysis (ELA)](docs/detector/ELA.md) * [Fast Fourier Transform (FFT)](docs/detector/fft.md) * [Metadata Analysis](docs/detector/meta.md) * [Backend Notes](docs/detector/note-for-backend.md)* [Functions Overview](docs/functions.md)* [NestJS Integration Guide](docs/nestjs_integration.md)* [Security Details](docs/security.md)* [Setup Instructions](docs/setup.md)* [Project Structure](docs/structure.md)
---
## π Usage
1. **Install dependencies**
```bash pip install -r requirements.txt ```
2. **Run the API**
```bash uvicorn app:app --reload ```
3. **Build Docker (optional)**
```bash docker build -t ai-contain-checker . docker run -p 8000:8000 ai-contain-checker ```
---
## π Security & Integration
* **Token Authentication** and **IP Whitelisting** supported.* NestJS integration guide: [`docs/nestjs_integration.md`](docs/nestjs_integration.md)* Rate limiting handled using `slowapi`.
---
## π‘οΈ Future Plans
* Add **video classifier** module.* Expand dataset for **multilingual** AI content detection.* Add **fine-tuning UI** for models.
---
## π License
See full license terms here: [`LICENSE.md`](license.md)123456789---title: Ai-Checkeremoji: πcolorFrom: yellowcolorTo: bluesdk: dockerpinned: false---
12345678910111213141516171819202122232425262728293031
**Update: Edited & AI-Generated Content Detection β Project Plan**
### π Phase 1: Rule-Based Image Detection (In Progress)
We're implementing three core techniques to individually flag edited or AI-generated images:
* **ELA (Error Level Analysis):** Highlights inconsistencies via JPEG recompression.* **FFT (Frequency Analysis):** Uses 2D Fourier Transform to detect unnatural image frequency patterns.* **Metadata Analysis:** Parses EXIF data to catch clues like editing software tags.
These give us visual + interpretable results for each image, and currently offer \~60β70% accuracy on typical AI-edited content.
---
### Phase 2: AI vs Human Detection System (Coming Soon)
**Goal:** Build an AI model that classifies whether content is AI- or human-made β initially focusing on **images**, and later expanding to **text**.
**Data Strategy:**
* Scraping large volumes of recent AI-gen images (e.g. SDXL, Gibbli, MidJourney).* Balancing with high-quality human images.
**Model Plan:**
* Use ELA, FFT, and metadata as feature extractors.* Feed these into a CNN or ensemble model.* Later, unify into a full web-based platform (upload β get AI/human probability).
README.md+145-15
READMEs.mdDeleted-152
readmes.mdDeleted-9
test.mdDeleted-31