mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
this fixes a crash in the TI frontend (#2527)
- This fixes an edge case crash when the textual inversion frontend tried to display the list of models and no default model defined in models.yaml Co-authored-by: Jonathan <34005131+JPPhoto@users.noreply.github.com>
This commit is contained in:
parent
4895fe8395
commit
9307ce3dc3
@ -295,7 +295,8 @@ class textualInversionForm(npyscreen.FormMultiPageAction):
|
||||
for idx in range(len(model_names))
|
||||
if "default" in conf[model_names[idx]]
|
||||
]
|
||||
return (model_names, defaults[0])
|
||||
default = defaults[0] if len(defaults)>0 else 0
|
||||
return (model_names, default)
|
||||
|
||||
def marshall_arguments(self) -> dict:
|
||||
args = dict()
|
||||
|
Loading…
Reference in New Issue
Block a user