Skip to content

Commit

Permalink
Fixed hydralit_components and no_rerun import error. (#1805)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool940711 authored Jul 27, 2023
2 parents b648768 + fc65c05 commit 4138917
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion scripts/sd_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
# base webui import and utils.
# from webui_streamlit import st
import hydralit as st
import hydralit_components as hc

# streamlit imports
from streamlit.runtime.scriptrunner import StopException

# from streamlit.runtime.scriptrunner import script_run_context

# streamlit components section
from streamlit_server_state import server_state, server_state_lock
from streamlit_server_state import server_state, server_state_lock, no_rerun
import streamlit_nested_layout


# from streamlitextras.threader import lock, trigger_rerun, \
# streamlit_thread, get_thread, \
Expand Down
8 changes: 4 additions & 4 deletions scripts/webui_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
hc,
load_configs,
load_css,
set_logger_verbosity,
#set_logger_verbosity,
logger,
quiesce_logger,
#quiesce_logger,
set_page_title,
threading,
random,
Expand Down Expand Up @@ -340,8 +340,8 @@ def layout():


if __name__ == "__main__":
set_logger_verbosity(opt.verbosity)
quiesce_logger(opt.quiet)
#set_logger_verbosity(opt.verbosity)
#quiesce_logger(opt.quiet)

if not opt.headless:
layout()
Expand Down

0 comments on commit 4138917

Please sign in to comment.