mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 00:03:20 +01:00
Merge pull request #1428 from ogmaresca/fix-synatax-warning-on-startup
Fix SyntaxWarning on startup
This commit is contained in:
commit
d0d9c185f1
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user