mirror of https://github.com/vladmandic/automatic
parent
3a4efcc444
commit
0ed64ec195
|
|
@ -65,7 +65,7 @@ def setup_progressbar(*args, **kwargs): # pylint: disable=unused-argument
|
|||
pass
|
||||
|
||||
|
||||
def create_ui(startup_timer = None):
|
||||
def create_ui(startup_timer = None) -> gr.Blocks:
|
||||
global interfaces # pylint: disable=global-statement
|
||||
if startup_timer is None:
|
||||
timer.startup = timer.Timer()
|
||||
|
|
|
|||
|
|
@ -364,3 +364,4 @@ variables.redefining-builtins-modules=["six.moves","past.builtins","future.built
|
|||
[tool.pyright]
|
||||
pythonVersion = "3.10"
|
||||
pythonPlatform = "All"
|
||||
typeCheckingMode = "off"
|
||||
|
|
|
|||
2
webui.py
2
webui.py
|
|
@ -356,7 +356,7 @@ def start_ui():
|
|||
timer.startup.record("app-started")
|
||||
|
||||
time_sorted = sorted(modules.scripts_manager.time_setup.items(), key=lambda x: x[1], reverse=True)
|
||||
time_script = [f'{k}:{round(v,3)}' for (k,v) in time_sorted if v > 0.03]
|
||||
time_script = [f'{k}:{round(v,3)}' for (k,v) in time_sorted if v > 0.05]
|
||||
time_total = sum(modules.scripts_manager.time_setup.values())
|
||||
shared.log.debug(f'Scripts setup: time={time_total:.3f} {time_script}')
|
||||
time_component = [f'{k}:{round(v,3)}' for (k,v) in modules.scripts_manager.time_component.items() if v > 0.005]
|
||||
|
|
|
|||
Loading…
Reference in New Issue