Spaces:
Sleeping
Sleeping
| ## ποΈ Project Structure | |
| ```bash | |
| AI-Checker/ | |
| β | |
| βββ app.py # Main FastAPI entry point | |
| βββ config.py # Configuration settings | |
| βββ Dockerfile # Docker build script | |
| βββ Procfile # Deployment entry for platforms like Heroku/Railway | |
| βββ requirements.txt # Python dependency list | |
| βββ README.md # Main project overview π | |
| β | |
| βββ features/ # Core AI content detection modules | |
| β βββ image_classifier/ # Classifies AI vs Real images | |
| β β βββ controller.py | |
| β β βββ model_loader.py | |
| β β βββ preprocess.py | |
| β βββ image_edit_detector/ # Detects tampered or edited images | |
| β βββ nepali_text_classifier/ # Classifies Nepali text as AI or Human | |
| β β βββ controller.py | |
| β β βββ inferencer.py | |
| β β βββ model_loader.py | |
| β β βββ preprocess.py | |
| β βββ text_classifier/ # Classifies English text as AI or Human | |
| β βββ controller.py | |
| β βββ inferencer.py | |
| β βββ model_loader.py | |
| β βββ preprocess.py | |
| β | |
| βββ docs/ # Internal documentation and API references | |
| β βββ api_endpoints.md | |
| β βββ deployment.md | |
| β βββ detector/ | |
| β β βββ ELA.md | |
| β β βββ fft.md | |
| β β βββ meta.md | |
| β β βββ note-for-backend.md | |
| β βββ features/ | |
| β β βββ image_classifier.md | |
| β β βββ nepali_text_classifier.md | |
| β β βββ text_classifier.md | |
| β βββ functions.md | |
| β βββ nestjs_integration.md | |
| β βββ security.md | |
| β βββ setup.md | |
| β βββ structure.md | |
| β | |
| βββ IMG_Models/ # Stored model weights | |
| β βββ latest-my_cnn_model.h5 | |
| β | |
| βββ notebooks/ # Experimental/debug Jupyter notebooks | |
| βββ static/ # Static files (e.g., UI assets, test inputs) | |
| βββ test.md # Test usage notes | |
| ``` | |
| ### π Key Files and Their Roles | |
| - **`app.py`**: Entry point initializing FastAPI app and routes. | |
| - **`Procfile`**: Tells Railway (or similar platforms) how to run the program. | |
| - **`requirements.txt`**: Tracks all Python dependencies for the project. | |
| - **`__init__.py`**: Package initializer for the root module and submodules. | |
| - **`features/text_classifier/`** | |
| - **`controller.py`**: Handles logic between routes and the model. | |
| - **`inferencer.py`**: Runs inference and returns predictions as well as file system | |
| utilities. | |
| - **`features/NP/`** | |
| - **`controller.py`**: Handles logic between routes and the model. | |
| - **`inferencer.py`**: Runs inference and returns predictions as well as file system | |
| utilities. | |
| - **`model_loader.py`**: Loads the ML model and tokenizer. | |
| - **`preprocess.py`**: Prepares input text for the model. | |
| - **`routes.py`**: Defines API routes for text classification. | |
| [π Back to Main README](../README.md) | |