use Path / operator

This commit is contained in:
Michael Yang
2023-06-30 11:55:31 -07:00
parent 3ce3caaf65
commit 76fb9eea1e
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ def load(model_name, models={}):
if not models.get(model_name, None):
model_path = path.expanduser(model_name)
if not path.exists(model_path):
model_path = path.join(MODELS_CACHE_PATH, model_name + ".bin")
model_path = MODELS_CACHE_PATH / model_name + ".bin"
runners = {
model_type: cls