--- 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. ## Setup - Create a new Space with Docker SDK. - Add the files from this repo. - Set hardware to a paid GPU such as A10G small. - Add `HF_TOKEN` if your model repo is gated or private. ## Environment variables - `MODEL_REPO_ID`: model repo ID, default `ezioruan/inswapper_128.onnx` - `MODEL_FILENAME`: model filename, default `inswapper_128.onnx` - `MODEL_REVISION`: optional branch, tag, or commit hash - `HF_TOKEN`: optional token for gated/private repos - `FACE_MODEL_NAME`: InsightFace detector name, default `buffalo_l` - `DETECTION_SIZE`: detector input size, default `640` - `MAX_FRAMES`: optional frame cap for testing, default `0`