MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / apply_plugin

Function apply_plugin

ui/easydiffusion/app.py:285–290  ·  view source on GitHub ↗
(file, plugin)

Source from the content-addressed store, hash-verified

283 return importlib.import_module(mod_path)
284
285 def apply_plugin(file, plugin):
286 if hasattr(plugin, "get_cond_and_uncond"):
287 import sdkit.generate.image_generator
288
289 sdkit.generate.image_generator.get_cond_and_uncond = plugin.get_cond_and_uncond
290 log.info(f"Overridden get_cond_and_uncond with the one in the server plugin: {file}")
291
292 for file in os.listdir(USER_SERVER_PLUGINS_DIR):
293 file_path = os.path.join(USER_SERVER_PLUGINS_DIR, file)

Callers 1

load_server_pluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected