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:
parent
523709741c
commit
dd55b99af5
4 changed files with 17 additions and 21 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue