mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-02-26 01:44:09 +00:00
fix: Use correct embeddings dir
Use the `--embeddings-dir` if specified
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# to a temporary file to expose it to the javascript side
|
||||
|
||||
from pathlib import Path
|
||||
from modules import scripts
|
||||
from modules import scripts, shared
|
||||
|
||||
# Webui root path
|
||||
FILE_DIR = Path().absolute()
|
||||
@@ -15,7 +15,7 @@ TAGS_PATH = Path(scripts.basedir()).joinpath('tags')
|
||||
|
||||
# The path to the folder containing the wildcards and embeddings
|
||||
WILDCARD_PATH = FILE_DIR.joinpath('scripts/wildcards')
|
||||
EMB_PATH = FILE_DIR.joinpath('embeddings')
|
||||
EMB_PATH = Path(shared.cmd_opts.embeddings_dir)
|
||||
|
||||
|
||||
def find_ext_wildcard_paths():
|
||||
|
||||
Reference in New Issue
Block a user