From the project root, install the Python dependencies if needed:
python3 -m pip install torch torchvision pillowThen run the server:
python3 Model_trainingfiles/deepfake_server.pyKeep this terminal open. The extension talks to the server at http://127.0.0.1:8765.
- Open Chrome and go to
chrome://extensions. - Turn on Developer mode.
- Click Load unpacked.
- Select the
Chromeextensionfolder in this project. - Pin Local AI Image Detector from the extensions menu if you want quick access.
Open a web page with images. The extension scans visible images and adds a small badge with the local model result. Use the popup's Rescan page button after the server starts or when a page changes.
To check that the server is reachable, open:
http://127.0.0.1:8765/health