mark the model as loaded once loaded

This commit is contained in:
faraphel 2025-01-08 20:35:14 +01:00
parent 66ae63ac19
commit 71eff944dd

View file

@ -64,6 +64,9 @@ class BaseModel(abc.ABC):
# declare ourselves as the currently loaded model # declare ourselves as the currently loaded model
self.manager.current_loaded_model = self self.manager.current_loaded_model = self
# mark the model as loaded
self._loaded = True
@abc.abstractmethod @abc.abstractmethod
def _load(self): def _load(self):
""" """