Przeglądaj źródła

Don't show *-np models in the list of choices

oobabooga 2 lat temu
rodzic
commit
c72892835a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      server.py

+ 1 - 1
server.py

@@ -469,7 +469,7 @@ def update_extensions_parameters(*kwargs):
                     i += 1
 
 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():
     return sorted(set(map(lambda x : '.'.join(str(x.name).split('.')[:-1]), Path('presets').glob('*.txt'))), key=str.lower)