Download inference/core/interfaces/base.py from ftopal/OMG: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/spaces/ftopal/OMG/resolve/main/inference/core/interfaces/base.py
- Command line
-
hf download hf://spaces/ftopal/OMG/inference/core/interfaces/base.py
-
curl -L -o base.py https://huggingface.co/spaces/ftopal/OMG/resolve/main/inference/core/interfaces/base.py
261 Bytes
| from inference.core.managers.base import ModelManager | |
| class BaseInterface: | |
| """Base interface class which accepts a model manager on initialization""" | |
| def __init__(self, model_manager: ModelManager) -> None: | |
| self.model_manager = model_manager | |