Old project/workflow names and browser settings migrate on load; /funpack redirects to /fun. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016acRss69eH1235eRdFTZHY
23 lines
600 B
Python
23 lines
600 B
Python
"""Diffusion model loader. A node-only module."""
|
|
|
|
from .nodes import FunUIDiffusionModelLoader
|
|
|
|
ID = "loader_diffusion_model"
|
|
TITLE = "Diffusion model loader"
|
|
STAGE = "load"
|
|
CATEGORY = "system"
|
|
STATUS = "proven"
|
|
|
|
NODES = [FunUIDiffusionModelLoader]
|
|
|
|
|
|
def routes(table, base, web):
|
|
@table.get(base + "/torch")
|
|
async def _torch(_req):
|
|
"""Why int8 would run slow on this torch build (None when it would not), for the chip beside Generate."""
|
|
from ..common import slow_int8_build
|
|
return web.json_response({"slow_int8": slow_int8_build()})
|
|
|
|
|
|
PROVIDES = {"routes": routes}
|