--- title: Video FaceSwap GPU Only emoji: 🎭 colorFrom: blue colorTo: purple sdk: docker app_port: 7860 suggested_hardware: a10g-small startup_duration_timeout: 1h pinned: false --- # Video FaceSwap GPU Only This Space is strict GPU-only. It refuses to process video unless ONNX Runtime exposes CUDAExecutionProvider. ## 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` ## Deploy 1. Create a Docker Space. 2. Select a paid GPU hardware tier such as A10G small. 3. Add these files. 4. Add `HF_TOKEN` if needed.