Don't show *-np models in the list of choices
This commit is contained in:
parent
95e536f876
commit
c72892835a
1 changed files with 1 additions and 1 deletions
|
|
@ -469,7 +469,7 @@ def update_extensions_parameters(*kwargs):
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
def get_available_models():
|
def get_available_models():
|
||||||
return sorted([item.name for item in list(Path('models/').glob('*')) if not item.name.endswith('.txt')], key=str.lower)
|
return sorted([item.name for item in list(Path('models/').glob('*')) if not item.name.endswith(('.txt', '-np'))], key=str.lower)
|
||||||
|
|
||||||
def get_available_presets():
|
def get_available_presets():
|
||||||
return sorted(set(map(lambda x : '.'.join(str(x.name).split('.')[:-1]), Path('presets').glob('*.txt'))), key=str.lower)
|
return sorted(set(map(lambda x : '.'.join(str(x.name).split('.')[:-1]), Path('presets').glob('*.txt'))), key=str.lower)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue