"src/vscode:/vscode.git/clone" did not exist on "39e1f7eaa4bf414f822ed13922a89df89aabe0bf"
Unverified Commit 5b1b80a5 authored by Stephen's avatar Stephen Committed by GitHub
Browse files

Change os.path to pathlib Path (#6737)

Change os.path to pathlib
parent 8581d9bc
......@@ -172,7 +172,7 @@ class OnnxRuntimeModel:
# load model from local directory
if os.path.isdir(model_id):
model = OnnxRuntimeModel.load_model(
os.path.join(model_id, model_file_name), provider=provider, sess_options=sess_options
Path(model_id, model_file_name).as_posix(), provider=provider, sess_options=sess_options
)
kwargs["model_save_dir"] = Path(model_id)
# load model from hub
......
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