[fix] Get the model again if current model is empty

This commit is contained in:
Kyle Schouviller 2023-03-12 19:18:42 -07:00 committed by Kent Keirsey
parent 2eef6df66a
commit 3ee2798ede

View File

@ -97,7 +97,7 @@ class ModelManager(object):
If on disk, will load from there.
"""
if not model_name:
return self.current_model if self.current_model else self.get_model(self.default_model())
return self.get_model(self.current_model) if self.current_model else self.get_model(self.default_model())
if not self.valid_model(model_name):
print(