Spaces:
Paused
Paused
Download roop/face_reference.py from emre5354/creative-lab: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/spaces/emre5354/creative-lab/resolve/main/roop/face_reference.py
- Command line
-
hf download hf://spaces/emre5354/creative-lab/roop/face_reference.py
-
curl -L -o face_reference.py https://huggingface.co/spaces/emre5354/creative-lab/resolve/main/roop/face_reference.py
364 Bytes
| from typing import Optional | |
| from roop.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 | |