Fix defaulting to web v2 when you can't get the revision of comfyui. #

This commit is contained in:
yolain
2024-08-18 10:44:29 +08:00
parent a8ca28ebca
commit d4a8f0d415
+2 -3
View File
@@ -55,11 +55,10 @@ for model in model_config:
add_static_resource(path, path, limit=True)
# get comfyui revision
from .py.libs.utils import get_comfyui_revision
from .py.libs.utils import compare_revision
comfyui_revision = get_comfyui_revision()
new_frontend_revision = 2546
web_default_version = 'v2' if int(comfyui_revision) >= new_frontend_revision else 'v1'
web_default_version = 'v2' if compare_revision(new_frontend_revision) else 'v1'
# web directory
config_path = os.path.join(cwd_path, "config.yaml")
if os.path.isfile(config_path):