Spaces:
Running
Running
Download tests/test_memory.py from stinkyshep/Tester: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/spaces/stinkyshep/Tester/resolve/main/tests/test_memory.py
- Command line
-
hf download hf://spaces/stinkyshep/Tester/tests/test_memory.py
-
curl -L -o test_memory.py https://huggingface.co/spaces/stinkyshep/Tester/resolve/main/tests/test_memory.py
275 Bytes
| import platform | |
| from facefusion.memory import limit_system_memory | |
| def test_limit_system_memory() -> None: | |
| assert limit_system_memory(4) is True | |
| if platform.system().lower() == 'darwin' or platform.system().lower() == 'linux': | |
| assert limit_system_memory(1024) is False | |