mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-14 14:05:36 +03:00
Added config option to enable or disable hydralit.
This commit is contained in:
parent
6cc906b869
commit
3cb9b62130
@ -62,6 +62,9 @@ general:
|
|||||||
update_preview: True
|
update_preview: True
|
||||||
update_preview_frequency: 10
|
update_preview_frequency: 10
|
||||||
|
|
||||||
|
debug:
|
||||||
|
enable_hydralit: False
|
||||||
|
|
||||||
txt2img:
|
txt2img:
|
||||||
prompt:
|
prompt:
|
||||||
width:
|
width:
|
||||||
|
@ -120,8 +120,9 @@ if st.session_state["defaults"].daisi_app.running_on_daisi_io:
|
|||||||
modeldownload.updateModels()
|
modeldownload.updateModels()
|
||||||
|
|
||||||
#
|
#
|
||||||
#app = st.HydraApp(title='Stable Diffusion WebUI', favicon="", sidebar_state="expanded",
|
#if st.session_state["defaults"].debug.enable_hydralit:
|
||||||
#hide_streamlit_markers=False, allow_url_nav=True , clear_cross_app_sessions=False)
|
app = st.HydraApp(title='Stable Diffusion WebUI', favicon="", sidebar_state="expanded", layout="wide",
|
||||||
|
hide_streamlit_markers=False, allow_url_nav=True , clear_cross_app_sessions=False)
|
||||||
|
|
||||||
|
|
||||||
# should and will be moved to a settings menu in the UI at some point
|
# should and will be moved to a settings menu in the UI at some point
|
||||||
|
@ -88,10 +88,13 @@ def load_css(isLocal, nameOrURL):
|
|||||||
else:
|
else:
|
||||||
remote_css(nameOrURL)
|
remote_css(nameOrURL)
|
||||||
|
|
||||||
|
@app.addapp("App")
|
||||||
def layout():
|
def layout():
|
||||||
"""Layout functions to define all the streamlit layout here."""
|
"""Layout functions to define all the streamlit layout here."""
|
||||||
st.set_page_config(page_title="Stable Diffusion Playground", layout="wide")
|
if not st.session_state["defaults"].debug.enable_hydralit:
|
||||||
#app = st.HydraApp(title='Stable Diffusion WebUI', favicon="", sidebar_state="expanded",
|
st.set_page_config(page_title="Stable Diffusion Playground", layout="wide")
|
||||||
|
|
||||||
|
#app = st.HydraApp(title='Stable Diffusion WebUI', favicon="", sidebar_state="expanded", layout="wide",
|
||||||
#hide_streamlit_markers=False, allow_url_nav=True , clear_cross_app_sessions=False)
|
#hide_streamlit_markers=False, allow_url_nav=True , clear_cross_app_sessions=False)
|
||||||
|
|
||||||
with st.empty():
|
with st.empty():
|
||||||
@ -144,6 +147,10 @@ def layout():
|
|||||||
from img2img import layout
|
from img2img import layout
|
||||||
layout()
|
layout()
|
||||||
|
|
||||||
|
#with inpainting_tab:
|
||||||
|
#from inpainting import layout
|
||||||
|
#layout()
|
||||||
|
|
||||||
with txt2vid_tab:
|
with txt2vid_tab:
|
||||||
from txt2vid import layout
|
from txt2vid import layout
|
||||||
layout()
|
layout()
|
||||||
@ -174,4 +181,8 @@ def layout():
|
|||||||
layout()
|
layout()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
layout()
|
|
||||||
|
if st.session_state["defaults"].debug.enable_hydralit:
|
||||||
|
app.run()
|
||||||
|
else:
|
||||||
|
layout()
|
||||||
|
Loading…
Reference in New Issue
Block a user