Commit 91542980 authored by Michael Yang's avatar Michael Yang
Browse files

use abspath to model

parent 99ad4d0c
...@@ -45,7 +45,7 @@ def load(model, models_home=".", llms={}): ...@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment