mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-01-26 19:19:57 +00:00
Separate refresh and write function to include embeds
This commit is contained in:
@@ -247,6 +247,10 @@ if EMB_PATH.exists():
|
||||
script_callbacks.on_model_loaded(get_embeddings)
|
||||
|
||||
def refresh_temp_files():
|
||||
write_temp_files()
|
||||
get_embeddings()
|
||||
|
||||
def write_temp_files():
|
||||
# Write wildcards to wc.txt if found
|
||||
if WILDCARD_PATH.exists():
|
||||
wildcards = [WILDCARD_PATH.relative_to(FILE_DIR).as_posix()] + get_wildcards()
|
||||
@@ -279,7 +283,7 @@ def refresh_temp_files():
|
||||
write_to_temp_file('lyco.txt', lyco)
|
||||
|
||||
|
||||
refresh_temp_files()
|
||||
write_temp_files()
|
||||
|
||||
# Register autocomplete options
|
||||
def on_ui_settings():
|
||||
|
||||
Reference in New Issue
Block a user