Code Optimization and Issues Fixes in ComfyUI server (#8196)

* Update server.py

* Update server.py
This commit is contained in:
编程界的小学生 2025-05-21 16:59:42 +08:00 committed by GitHub
parent 65da29aaa9
commit 57893c843f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,7 +226,7 @@ class PromptServer():
return response
@routes.get("/embeddings")
def get_embeddings(self):
def get_embeddings(request):
embeddings = folder_paths.get_filename_list("embeddings")
return web.json_response(list(map(lambda a: os.path.splitext(a)[0], embeddings)))
@ -282,7 +282,6 @@ class PromptServer():
a.update(f.read())
b.update(image.file.read())
image.file.seek(0)
f.close()
return a.hexdigest() == b.hexdigest()
return False