Skip to content

Commit 4224b9a

Browse files
committed
Directly load custom model #60
1 parent bb76aea commit 4224b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

celltypist/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def load(model: Optional[str] = None):
8787
"""
8888
if not model:
8989
model = get_default_model()
90-
if model in get_all_models():
90+
if '/' not in model and model in get_all_models():
9191
model = get_model_path(model)
9292
if not os.path.isfile(model):
9393
raise FileNotFoundError(

0 commit comments

Comments
 (0)