diff --git a/scripts/tag_autocomplete_helper.py b/scripts/tag_autocomplete_helper.py index 2b05ce3..3e09cb2 100644 --- a/scripts/tag_autocomplete_helper.py +++ b/scripts/tag_autocomplete_helper.py @@ -26,6 +26,10 @@ def write_to_temp_file(name, data): # Check if the temp path exists and create it if not if not os.path.exists(TEMP_PATH): os.makedirs(TEMP_PATH) + # Set up files to ensure the script doesn't fail to load them + # even if no wildcards or embeddings are found + write_to_temp_file('wc.txt', []) + write_to_temp_file('emb.txt', []) # Write wildcards to wc.txt if found if os.path.exists(WILDCARD_PATH): diff --git a/tags/config.json b/tags/config.json index eb4e13d..7c2a5b6 100644 --- a/tags/config.json +++ b/tags/config.json @@ -8,7 +8,8 @@ "maxResults": 5, "replaceUnderscores": true, "escapeParentheses": true, - "useWildcards": false, + "useWildcards": true, + "useEmbeddings": true, "colors": { "danbooru": { "0": ["lightblue", "dodgerblue"],