mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-20 06:27:02 +08:00
Use frontend pypi package
This commit is contained in:
parent
cf0b549d48
commit
6eea03538d
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
comfyui_frontend_package==1.10.14
|
||||
torch
|
||||
torchsde
|
||||
torchvision
|
||||
|
Loading…
x
Reference in New Issue
Block a user