From 4e873caec0c9e785375ce14f8740e42898418f77 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 00:10:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/sd_utils/__init__.py | 4 +--- scripts/webui_streamlit.py | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/sd_utils/__init__.py b/scripts/sd_utils/__init__.py index 7f83b4f2f..05cc05df7 100644 --- a/scripts/sd_utils/__init__.py +++ b/scripts/sd_utils/__init__.py @@ -16,7 +16,6 @@ # 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 @@ -24,8 +23,7 @@ # from streamlit.runtime.scriptrunner import script_run_context # streamlit components section -from streamlit_server_state import server_state, server_state_lock, no_rerun -import streamlit_nested_layout +from streamlit_server_state import server_state, server_state_lock # from streamlitextras.threader import lock, trigger_rerun, \ diff --git a/scripts/webui_streamlit.py b/scripts/webui_streamlit.py index 678b2021e..a0f778bb9 100644 --- a/scripts/webui_streamlit.py +++ b/scripts/webui_streamlit.py @@ -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, @@ -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()