Use frontend pypi package

This commit is contained in:
huchenlei 2025-02-28 13:43:43 -05:00
parent cf0b549d48
commit 6eea03538d
2 changed files with 5 additions and 1 deletions

View File

@ -5,13 +5,16 @@ import os
import re
import tempfile
import zipfile
import importlib
from dataclasses import dataclass
from functools import cached_property
from pathlib import Path
from typing import TypedDict, Optional
import requests
from comfyui_frontend import static
from typing_extensions import NotRequired
from comfy.cli_args import DEFAULT_VERSION_STRING
@ -109,7 +112,7 @@ def download_release_asset_zip(release: Release, destination_path: str) -> None:
class FrontendManager:
DEFAULT_FRONTEND_PATH = str(Path(__file__).parents[1] / "web")
DEFAULT_FRONTEND_PATH = importlib.resources.path(static, ".")
CUSTOM_FRONTENDS_ROOT = str(Path(__file__).parents[1] / "web_custom_versions")
@classmethod

View File

@ -1,3 +1,4 @@
comfyui_frontend_package==1.10.14
torch
torchsde
torchvision