From 192520eafe242995c5d89e4c9841ae54faed95bc Mon Sep 17 00:00:00 2001 From: Olivia Godone-Maresca Date: Fri, 21 Jul 2023 21:15:21 -0400 Subject: [PATCH] Fix SyntaxWarning on startup --- ui/easydiffusion/utils/save_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/easydiffusion/utils/save_utils.py b/ui/easydiffusion/utils/save_utils.py index 75d35dc8..7c9c2f67 100644 --- a/ui/easydiffusion/utils/save_utils.py +++ b/ui/easydiffusion/utils/save_utils.py @@ -215,7 +215,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 = []