A web-based AI-powered application for detecting deepfake content in images and videos.
├── frontend/ # React TypeScript frontend
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── services/ # API services
│ │ └── types/ # TypeScript type definitions
│ └── public/ # Static assets
├── backend/ # FastAPI Python backend
│ ├── app/
│ │ ├── api/ # API endpoints
│ │ ├── services/ # Business logic services
│ │ ├── models/ # Data models
│ │ └── core/ # Core configuration
│ └── tests/ # Backend tests
├── shared/ # Shared utilities and types
│ ├── utils/ # Common utilities
│ └── types/ # Shared type definitions
└── .github/workflows/ # CI/CD configuration
- Docker and Docker Compose
- Node.js 18+ (for local development)
- Python 3.11+ (for local development)
- Clone the repository
- Run the application:
docker-compose up --build
- Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
-
Navigate to the backend directory:
cd backend -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the development server:
uvicorn app.main:app --reload
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install
-
Start the development server:
npm start
For development with hot reloading:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --buildcd backend
pytest tests/ -vcd frontend
npm test- Upload and analyze images for deepfake detection
- Upload and analyze videos with frame-by-frame analysis
- AI-powered detection using ensemble models
- Detailed analysis reports with confidence scores
- Secure file handling with automatic cleanup
- Real-time progress tracking
- Responsive web interface
Frontend:
- React 18 with TypeScript
- Material-UI for components
- React Query for state management
- Axios for API communication
Backend:
- FastAPI for REST API
- Celery for background processing
- Redis for task queue
- PyTorch/TensorFlow for AI models
- OpenCV for video processing
Infrastructure:
- Docker for containerization
- GitHub Actions for CI/CD
- Nginx for reverse proxy
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
This project is licensed under the MIT License.