Skip to content

Commit

Permalink
revise for safesentors file
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Mar 21, 2023
1 parent d427458 commit 0231ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui.py
Expand Up @@ -237,7 +237,7 @@ def webui():
api_endpoint = os.environ['api_endpoint']
endpoint_name = os.environ['endpoint_name']
for file in os.listdir(sd_models_path):
if os.path.isfile(os.path.join(sd_models_path, file)) and file.endswith('.ckpt'):
if os.path.isfile(os.path.join(sd_models_path, file)) and (file.endswith('.ckpt') or file.endswith('.ckpt')):
hash = modules.sd_models.model_hash(os.path.join(sd_models_path, file))
item = {}
item['model_name'] = file
Expand Down

0 comments on commit 0231ec4

Please sign in to comment.