mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 01:34:38 +01:00
Fix SyntaxWarning on startup
This commit is contained in:
parent
66624f4011
commit
192520eafe
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user