Model: Store directory paths

Storing a pathlib type makes it easier to manipulate the model
directory path in the long run without constantly fetching it
from the config.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-08-29 22:49:20 -04:00 committed by Brian Dashore
parent 523709741c
commit dd55b99af5
4 changed files with 17 additions and 21 deletions

View file

@ -57,7 +57,7 @@ async def load_model_gen(model_path: pathlib.Path, **kwargs):
# Check if the model is already loaded
if container and container.model:
loaded_model_name = container.get_model_path().name
loaded_model_name = container.model_dir.name
if loaded_model_name == model_path.name and container.model_loaded:
raise ValueError(