# anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker architecture

> Architecture diagram of the GitHub repository anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker
- Repository: https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker

## Overview

##### Project type and purpose
- From the flat file tree (app.py, unmasked.py, an HTML template, CSS files) and README description, this is a small full-stack Python web application whose goal is to allow end-users to upload or stream video, run a “DeepSeek-R1” deepfake-detection model, and surface both detection results and suspicious-account tracking information via external APIs.

##### File structure
- Top-level files only:
- app.py – the main web server (likely a Flask or similar microframework entry point)
- unmasked.py – the module that wraps or implements the DeepSeek-R1 inference logic
- news_slider.html, style.css, style2.css – frontend assets (HTML + styling)
- startapp.bat – a Windows helper to launch the app
- No database directories or config folders, implying a monolithic service: server + model + API calls all in one codebase.

##### README for additional insights
- Confirms DeepSeek-R1 model integration
- Mentions “extra tracking apis for suspicious account” – external HTTP services the backend calls
- No built-in data persistence indicated (no DB), likely ephemeral or in-memory

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Frontend Layer
    subgraph "Frontend Layer"
        direction TB
        News["news_slider.html"]:::frontend
        CSS1["style.css"]:::frontend
        CSS2["style2.css"]:::frontend
    end

    %% Backend Layer
    subgraph "Backend Layer"
        direction TB
        App["app.py"]:::backend
        Unmasked["unmasked.py"]:::backend
    end

    %% External Services
    subgraph "External Services"
        direction TB
        TrackingAPI["Suspicious Account Tracking APIs"]:::external
    end

    %% Utilities
    subgraph "Utilities"
        direction TB
        Startup["startapp.bat"]:::utility
        Docs["README.md"]:::utility
    end

    %% User
    User["End User (Browser)"]:::frontend

    %% Connections
    User -->|loads| News
    User -->|loads| CSS1
    User -->|loads| CSS2
    News -->|HTTP request| App
    CSS1 -->|HTTP request| App
    CSS2 -->|HTTP request| App
    App -->|invoke inference| Unmasked
    Unmasked -->|return results| App
    App -->|call tracking| TrackingAPI
    App -->|response| User

    %% Click Events
    click News "https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker/blob/main/news_slider.html"
    click CSS1 "https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker/blob/main/style.css"
    click CSS2 "https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker/blob/main/style2.css"
    click App "https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker/blob/main/app.py"
    click Unmasked "https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker/blob/main/unmasked.py"
    click Startup "https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker/blob/main/startapp.bat"
    click Docs "https://github.com/anshuuuuuuuuuuuuu/deepfake-detector-and-ip-tracker/blob/main/README.md"

    %% Styles
    classDef frontend fill:#D0E8FF,stroke:#036,stroke-width:1px
    classDef backend fill:#D0FFD0,stroke:#063,stroke-width:1px
    classDef external fill:#FFE0B2,stroke:#975A16,stroke-width:1px
    classDef utility fill:#E0E0E0,stroke:#666,stroke-width:1px
```
