Spaces:
Running on Zero
Running on Zero
| from typing import Protocol, TypeVar | |
| ModelType = TypeVar("ModelType") | |
| class ModelConfigurator(Protocol[ModelType]): | |
| """Protocol for model loader classes that instantiates models from a configuration dictionary.""" | |
| def from_config(cls, config: dict) -> ModelType: ... | |