Download tests/conftest.py from pearlyjam21/reachy_mini_multimodal_emotion: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/pearlyjam21/reachy_mini_multimodal_emotion/resolve/d626f8b26251736adc17511bda87c11f012aae67/tests/conftest.py
- Command line
-
hf download hf://spaces/pearlyjam21/reachy_mini_multimodal_emotion@d626f8b26251736adc17511bda87c11f012aae67/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/pearlyjam21/reachy_mini_multimodal_emotion/resolve/d626f8b26251736adc17511bda87c11f012aae67/tests/conftest.py
431 Bytes
| """Model-dependent tests use MM_EMOTION_LOCAL_DIR (a folder with the model repo layout) and skip without it.""" | |
| import os | |
| from pathlib import Path | |
| import pytest | |
| def model_root() -> Path: | |
| root = os.environ.get("MM_EMOTION_LOCAL_DIR") | |
| if not root or not (Path(root) / "config.json").exists(): | |
| pytest.skip("set MM_EMOTION_LOCAL_DIR to the model repo folder") | |
| return Path(root) | |