From a0e195d1c1809fadc54eec35e01e03f216763c25 Mon Sep 17 00:00:00 2001 From: yolain Date: Fri, 16 Aug 2024 17:55:21 +0800 Subject: [PATCH] Fix get comfyui revision more add int type conversion --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 1f67474..9baf0f9 100644 --- a/__init__.py +++ b/__init__.py @@ -59,7 +59,7 @@ from .py.libs.utils import get_comfyui_revision comfyui_revision = get_comfyui_revision() new_frontend_revision = 2546 -web_default_version = 'v2' if comfyui_revision >= new_frontend_revision else 'v1' +web_default_version = 'v2' if int(comfyui_revision) >= new_frontend_revision else 'v1' # web directory config_path = os.path.join(cwd_path, "config.yaml") if os.path.isfile(config_path):