* update ci method & fix key page bug * add list model method * refine * Update workflow-ci.yml * Support the use of uploaded Lora (#85) * Support the use of uploaded Lora * refine * refine * refine * refine * refine * reformat * add test workflow * fix error * fix error * fix vaild error * refine * refine * remove Redundant warning * skip flux lora * use ini file instead of cookies in daily use (#91) * debug ci * refine * refine * get key from cookies * set key to ini file * print error msg when set api key failed * revert menu json file * revert code, becuase of the error reoccur * remove raise error, instead of using warning * rever workflow ci yaml * refine test output * add workflow dspatch event * refine * fix encode_comfy_image & decode_comfy_image * [feat]set api key home page refresh * update dev_config.yaml * add FluxGuidance node * fix error * black --------- Co-authored-by: Yao Chi <later@usopp.net> Co-authored-by: of-HaiQin <5372604@qq.com>
35 lines
861 B
Python
35 lines
861 B
Python
import os
|
|
import sys
|
|
|
|
current_path = os.path.abspath(os.path.dirname(__file__))
|
|
src_path = os.path.join(current_path, "src")
|
|
if os.path.isdir(src_path):
|
|
sys.path.insert(0, src_path)
|
|
|
|
from bizyair import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
WEB_DIRECTORY = "./js"
|
|
|
|
from . import nodes
|
|
from . import bizyair_extras
|
|
from . import showcase
|
|
from . import auth
|
|
from . import supernode
|
|
from . import llm
|
|
from . import nodes_controlnet_aux
|
|
from . import nodes_controlnet_union_sdxl
|
|
from . import mzkolors
|
|
|
|
|
|
def update_mappings(module):
|
|
NODE_CLASS_MAPPINGS.update(**module.NODE_CLASS_MAPPINGS)
|
|
NODE_DISPLAY_NAME_MAPPINGS.update(**module.NODE_DISPLAY_NAME_MAPPINGS)
|
|
|
|
|
|
update_mappings(auth)
|
|
update_mappings(supernode)
|
|
update_mappings(llm)
|
|
update_mappings(nodes_controlnet_aux)
|
|
update_mappings(nodes_controlnet_union_sdxl)
|
|
update_mappings(mzkolors)
|