Extension install improvements

This commit is contained in:
oobabooga 2023-09-25 19:48:30 -07:00
parent 44438c60e5
commit 862b45b1c7
2 changed files with 19 additions and 9 deletions

View file

@ -3,7 +3,7 @@ import re
from datetime import datetime
from pathlib import Path
from modules import shared
from modules import github, shared
from modules.logging_colors import logger
@ -107,7 +107,9 @@ def get_available_instruction_templates():
def get_available_extensions():
return sorted(set(map(lambda x: x.parts[1], Path('extensions').glob('*/script.py'))), key=natural_keys)
extensions = sorted(set(map(lambda x: x.parts[1], Path('extensions').glob('*/script.py'))), key=natural_keys)
extensions = [v for v in extensions if v not in github.new_extensions]
return extensions
def get_available_loras():