Spaces:
Runtime error
Runtime error
Download DeepFakeAI/face_reference.py from DAVIGABRIELA/video-face-swap: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/DAVIGABRIELA/video-face-swap/resolve/6aabaca4c079b0e9e44887883345c08d59452a45/DeepFakeAI/face_reference.py
- Command line
-
hf download hf://spaces/DAVIGABRIELA/video-face-swap@6aabaca4c079b0e9e44887883345c08d59452a45/DeepFakeAI/face_reference.py
-
curl -L -o face_reference.py https://huggingface.co/spaces/DAVIGABRIELA/video-face-swap/resolve/6aabaca4c079b0e9e44887883345c08d59452a45/DeepFakeAI/face_reference.py
335 Bytes
| from typing import Optional | |
| from DeepFakeAI.typing import Face | |
| FACE_REFERENCE = None | |
| def get_face_reference() -> Optional[Face]: | |
| return FACE_REFERENCE | |
| def set_face_reference(face : Face) -> None: | |
| global FACE_REFERENCE | |
| FACE_REFERENCE = face | |
| def clear_face_reference() -> None: | |
| global FACE_REFERENCE | |
| FACE_REFERENCE = None | |