diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 08e9bc8..111e55f 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -968,6 +968,8 @@ async function refreshTacTempFiles() { loras = []; lycos = []; await processQueue(QUEUE_FILE_LOAD, null); + + console.log("TAC: Refreshed temp files"); }, 2000); } @@ -1047,7 +1049,7 @@ async function setup() { }) }); // Listener for internal temp files refresh button - gradioApp().querySelector("#tac_refreshTempFiles")?.addEventListener("click", refreshTacTempFiles); + gradioApp().querySelector("#refresh_tac_refreshTempFiles")?.addEventListener("click", refreshTacTempFiles); // Add mutation observer for the model hash text to also allow hash-based blacklist again let modelHashText = gradioApp().querySelector("#sd_checkpoint_hash"); diff --git a/scripts/tag_autocomplete_helper.py b/scripts/tag_autocomplete_helper.py index 8b4c0be..9e47af9 100644 --- a/scripts/tag_autocomplete_helper.py +++ b/scripts/tag_autocomplete_helper.py @@ -248,7 +248,7 @@ if EMB_PATH.exists(): def refresh_temp_files(): write_temp_files() - get_embeddings() + get_embeddings(shared.sd_model) def write_temp_files(): # Write wildcards to wc.txt if found