Merge pull request #1428 from ogmaresca/fix-synatax-warning-on-startup

Fix SyntaxWarning on startup
This commit is contained in:
cmdr2 2023-07-22 12:10:53 +05:30 committed by GitHub
commit d0d9c185f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ def get_printable_request(req: GenerateImageRequest, task_data: TaskData):
metadata[key] = req_metadata[key]
elif key in task_data_metadata:
metadata[key] = task_data_metadata[key]
elif key is "use_embedding_models" and using_diffusers:
elif key == "use_embedding_models" and using_diffusers:
embeddings_extensions = {".pt", ".bin", ".safetensors"}
def scan_directory(directory_path: str):
used_embeddings = []