Skip to content

Commit

Permalink
fix issues with list cn models
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Mar 5, 2023
1 parent d15c814 commit aa93e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui.py
Expand Up @@ -252,7 +252,7 @@ def webui():
hash = modules.sd_models.model_hash(os.path.join(cn_models_path, file))
item = {}
item['model_name'] = file
item['title'] = '{0} [{1}]'.format(os.path.basename(file), hash)
item['title'] = '{0} [{1}]'.format(os.path.splitext(file)[0], hash)
item['endpoint_name'] = endpoint_name
items.append(item)

Expand Down

0 comments on commit aa93e24

Please sign in to comment.