diff --git a/WAS_Node_Suite.py b/WAS_Node_Suite.py index d6e8007..2c94ff1 100644 --- a/WAS_Node_Suite.py +++ b/WAS_Node_Suite.py @@ -182,6 +182,7 @@ was_conf_template = { "suppress_uncomfy_warnings": True, "show_startup_junk": True, "show_inspiration_quote": True, + "text_nodes_type": "STRING", "webui_styles": None, "webui_styles_persistent_update": True, "blip_model_url": "https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_capfilt_large.pth", @@ -297,6 +298,9 @@ if not os.access(WAS_SUITE_ROOT, os.W_OK) or not os.access(MODELS_DIR, os.W_OK): # SET TEXT TYPE TEXT_TYPE = "STRING" +if was_config and was_config.__contains__('text_nodes_type'): + if was_config['text_node_type'].strip() != '': + TEXT_TYPE = was_config['text_node_type'].strip() if was_config and was_config.__contains__('use_legacy_ascii_text'): if was_config['use_legacy_ascii_text']: TEXT_TYPE = "ASCII"