From 48efadeccf9793ea86df89c173c34279ebe07f1f Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sun, 26 Mar 2023 15:16:52 -0400 Subject: [PATCH] Style. --- nodes.py | 4 ++-- server.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index bec2bf9a..f24bc4a5 100644 --- a/nodes.py +++ b/nodes.py @@ -746,12 +746,12 @@ class SaveImage: except: digits = 0 return (digits, prefix) - + def compute_vars(input): input = input.replace("%width%", str(images[0].shape[1])) input = input.replace("%height%", str(images[0].shape[0])) return input - + filename_prefix = compute_vars(filename_prefix) subfolder = os.path.dirname(os.path.normpath(filename_prefix)) diff --git a/server.py b/server.py index 1a370317..e71289cd 100644 --- a/server.py +++ b/server.py @@ -30,7 +30,7 @@ async def cache_control(request: web.Request, handler): class PromptServer(): def __init__(self, loop): PromptServer.instance = self - + mimetypes.init(); mimetypes.types_map['.js'] = 'application/javascript; charset=utf-8' self.prompt_queue = None