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 example for how to use WEB_DIRECTORY to add frontend extensions.
comfyanonymous4a7e751ce667
diff --git a/custom_nodes/example_node.py.example b/custom_nodes/example_node.py.exampleindex 7ce271ec6..f06632593 100644--- a/custom_nodes/example_node.py.example+++ b/custom_nodes/example_node.py.example@@ -103,6 +103,9 @@ class Example:#def IS_CHANGED(s, image, string_field, int_field, float_field, print_to_screen):# return ""+# Set the web directory, any .js file in that directory will be loaded by the frontend as a frontend extension+# WEB_DIRECTORY = "./somejs"+# A dictionary that contains all nodes you want to export with their names# NOTE: names should be globally uniqueNODE_CLASS_MAPPINGS = {