The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add code for categories.
comfyanonymouseb85896b731a
diff --git a/main.py b/main.pyindex 20193f82c..3e25114dd 100644--- a/main.py+++ b/main.py@@ -291,6 +291,9 @@ class PromptServer(BaseHTTPRequestHandler):info['output'] = obj_class.RETURN_TYPESinfo['name'] = x #TODOinfo['description'] = ''+ info['category'] = 'sd'+ if hasattr(obj_class, 'CATEGORY'):+ info['category'] = obj_class.CATEGORYout[x] = infoself.wfile.write(json.dumps(out).encode('utf-8'))elif self.path[1:] in os.listdir(self.server.server_dir):diff --git a/webshit/index.html b/webshit/index.htmlindex 809517a40..31c367086 100644--- a/webshit/index.html+++ b/webshit/index.html@@ -237,7 +237,7 @@ function onObjectInfo(json) {MyNode.__json_data = json[key]LiteGraph.registerNodeType(key, MyNode);- MyNode.category = "sd"; //TODO: proper categories+ MyNode.category = json[key]['category'];};afterLoadGraph();