Update server.py

This commit is contained in:
编程界的小学生 2025-05-19 16:02:45 +08:00 committed by GitHub
parent d8e5662822
commit 0ea563cf8d
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)))