Update WAS_Node_Suite.py

This commit is contained in:
Jordan Thompson
2023-05-23 14:52:47 -07:00
parent f2e8dfa4e6
commit ce9e6c16f0
+4
View File
@@ -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"