Spaces:
Build error
Build error
Download tests/test_memory.py from LULDev/facetest: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/spaces/LULDev/facetest/resolve/refs%2Fpr%2F1/tests/test_memory.py
- Command line
-
hf download hf://spaces/LULDev/facetest@refs/pr/1/tests/test_memory.py
-
curl -L -o test_memory.py https://huggingface.co/spaces/LULDev/facetest/resolve/refs%2Fpr%2F1/tests/test_memory.py
261 Bytes
| from facefusion.common_helper import is_linux, is_macos | |
| from facefusion.memory import limit_system_memory | |
| def test_limit_system_memory() -> None: | |
| assert limit_system_memory(4) is True | |
| if is_linux() or is_macos(): | |
| assert limit_system_memory(1024) is False | |