mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2025-01-07 11:59:59 +03:00
Merge pull request #881 from TinyBeeman/streamdev
Fixed the user config path in webui_streamlit.py
This commit is contained in:
commit
2be3c2ad37
@ -61,8 +61,8 @@ except:
|
|||||||
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||||
|
|
||||||
defaults = OmegaConf.load("configs/webui/webui_streamlit.yaml")
|
defaults = OmegaConf.load("configs/webui/webui_streamlit.yaml")
|
||||||
if (os.path.exists("userconfig_streamlit.yaml")):
|
if (os.path.exists("configs/webui/userconfig_streamlit.yaml")):
|
||||||
user_defaults = OmegaConf.load("userconfig_streamlit.yaml");
|
user_defaults = OmegaConf.load("configs/webui/userconfig_streamlit.yaml");
|
||||||
defaults = OmegaConf.merge(defaults, user_defaults)
|
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
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user