Spaces:
Running on Zero
Running on Zero
Download src/user/model_loader.py from Aatricks/LightDiffusion-Next: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/Aatricks/LightDiffusion-Next/resolve/main/src/user/model_loader.py
- Command line
-
hf download hf://spaces/Aatricks/LightDiffusion-Next/src/user/model_loader.py
-
curl -L -o model_loader.py https://huggingface.co/spaces/Aatricks/LightDiffusion-Next/resolve/main/src/user/model_loader.py
425 Bytes
| """Legacy model loader for backward compatibility with tests.""" | |
| from typing import Any, Tuple | |
| def load_model_for_pipeline(model_path: str = None, **kwargs) -> Tuple[str, Tuple[Any, Any, Any]]: | |
| """ | |
| Legacy function used by tests to mock model loading. | |
| In real usage, the Pipeline class handles model loading internally. | |
| """ | |
| # This is just a stub for tests to patch | |
| return ("SD15", (None, None, None)) | |