Merge pull request #881 from TinyBeeman/streamdev

Fixed the user config path in webui_streamlit.py
This commit is contained in:
ZeroCool 2022-09-09 01:08:20 -07:00 committed by GitHub
commit 2be3c2ad37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,8 +61,8 @@ except:
warnings.filterwarnings("ignore", category=DeprecationWarning)
defaults = OmegaConf.load("configs/webui/webui_streamlit.yaml")
if (os.path.exists("userconfig_streamlit.yaml")):
user_defaults = OmegaConf.load("userconfig_streamlit.yaml");
if (os.path.exists("configs/webui/userconfig_streamlit.yaml")):
user_defaults = OmegaConf.load("configs/webui/userconfig_streamlit.yaml");
defaults = OmegaConf.merge(defaults, user_defaults)
# this is a fix for Windows users. Without it, javascript files will be served with text/html content-type and the bowser will not show any UI