use abspath to model
This commit is contained in:
parent
99ad4d0c9c
commit
9154298085
@ -45,7 +45,7 @@ def load(model, models_home=".", llms={}):
|
|||||||
|
|
||||||
if not model_path:
|
if not model_path:
|
||||||
# try loading this as a path to a model, rather than a model name
|
# try loading this as a path to a model, rather than a model name
|
||||||
model_path = model
|
model_path = os.path.abspath(model)
|
||||||
|
|
||||||
# suppress LLM's output
|
# suppress LLM's output
|
||||||
with suppress_stderr():
|
with suppress_stderr():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user