emergency fix for disabling SD model download after multiple complaints

This commit is contained in:
AUTOMATIC 2022-10-02 21:22:20 +03:00
parent 0a435f0988
commit 852fd90c0d
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ def list_models():
def modeltitle(path, shorthash): def modeltitle(path, shorthash):
abspath = os.path.abspath(path) abspath = os.path.abspath(path)
if user_dir is not None and abspath.startswith(user_dir): if shared.cmd_opts.ckpt_dir is not None and abspath.startswith(shared.cmd_opts.ckpt_dir):
name = abspath.replace(user_dir, '') name = abspath.replace(shared.cmd_opts.ckpt_dir, '')
elif abspath.startswith(model_path): elif abspath.startswith(model_path):
name = abspath.replace(model_path, '') name = abspath.replace(model_path, '')
else: else: