--- title: Video FaceSwap GPU emoji: 🎭 colorFrom: blue colorTo: purple sdk: docker app_port: 7860 suggested_hardware: a10g-small startup_duration_timeout: 1h --- # Video FaceSwap GPU Docker Space for swapping a face from an uploaded image onto a target video. ## Environment variables - `MODEL_REPO_ID`: default `ezioruan/inswapper_128.onnx` - `MODEL_FILENAME`: default `inswapper_128.onnx` - `MODEL_REVISION`: optional branch, tag, or commit hash - `HF_TOKEN`: recommended for gated/private repos and better Hub rate limits - `FACE_MODEL_NAME`: default `buffalo_l` - `DETECTION_SIZE`: default `640` - `MAX_FRAMES`: optional frame cap for testing, default `0` - `FORCE_CPU`: set to `1` to force CPU mode for debugging ## Deploy 1. Create a new Space with Docker SDK. 2. Add the files from this repo. 3. Select a paid GPU hardware tier such as A10G small. 4. Add `HF_TOKEN` if you use a private or rate-limited model repo.