diff --git a/__init__.py b/__init__.py index 4440b9f..7fec35a 100644 --- a/__init__.py +++ b/__init__.py @@ -192,6 +192,9 @@ if hasattr(PromptServer, "instance"): "LoadFaceAnalysisModel": restore_deps, } + PromptServer.instance.app.router.add_static( + "/mtb-assets/", path=(here / "html").as_posix(), name="static" + ) @PromptServer.instance.routes.get("/mtb/status") async def get_full_library(request): from . import endpoint diff --git a/endpoint.py b/endpoint.py index b80823e..2adc583 100644 --- a/endpoint.py +++ b/endpoint.py @@ -123,21 +123,13 @@ def render_table(table_dict, sort=True, title=None): def render_base_template(title, content): - css_content = "" - css_path = here / "html" / "style.css" - if css_path: - with open(css_path, "r") as css_file: - css_content = css_file.read() - github_icon_svg = """""" return f"""