UI: update "Saved instruction templates" dropdown after loading template

This commit is contained in:
oobabooga 2023-12-17 21:19:06 -08:00
parent da1c8d77ea
commit 1f9e25e76a
2 changed files with 7 additions and 4 deletions

View file

@ -105,7 +105,7 @@ def get_available_instruction_templates():
if os.path.exists(path):
paths = (x for x in Path(path).iterdir() if x.suffix in ('.json', '.yaml', '.yml'))
return ['Custom'] + sorted(set((k.stem for k in paths)), key=natural_keys)
return ['Select template to load...'] + sorted(set((k.stem for k in paths)), key=natural_keys)
def get_available_extensions():