diff --git a/extensions-builtin/sdnext-modernui b/extensions-builtin/sdnext-modernui index e5888dd2b..c8e4ec014 160000 --- a/extensions-builtin/sdnext-modernui +++ b/extensions-builtin/sdnext-modernui @@ -1 +1 @@ -Subproject commit e5888dd2b2412e530a3e1deb43a28e34d4c447d0 +Subproject commit c8e4ec014dc625ed862cc4b8ace8b870a89771d9 diff --git a/modules/logger.py b/modules/logger.py index d912a4cfe..c8f2b514f 100644 --- a/modules/logger.py +++ b/modules/logger.py @@ -249,9 +249,14 @@ def setup_logging(debug=None, trace=None, filename=None): log.quiet = quiet_log # overrides - logging.getLogger("urllib3").setLevel(logging.ERROR) - logging.getLogger("httpx").setLevel(logging.ERROR) - logging.getLogger("diffusers").setLevel(logging.ERROR) - logging.getLogger("torch").setLevel(logging.ERROR) - logging.getLogger("ControlNet").handlers = log.handlers logging.getLogger("lycoris").handlers = log.handlers + logging.getLogger("ControlNet").handlers = log.handlers + + logging.getLogger("asyncio").setLevel(logging.ERROR) + logging.getLogger("diffusers").setLevel(logging.ERROR) + logging.getLogger("transformers").setLevel(logging.ERROR) + logging.getLogger("httpcore").setLevel(logging.ERROR) + logging.getLogger("httpx").setLevel(logging.ERROR) + logging.getLogger("torch").setLevel(logging.ERROR) + logging.getLogger("urllib3").setLevel(logging.ERROR) + logging.getLogger("uvicorn.access").setLevel(logging.ERROR) diff --git a/ui/globals.d.ts b/ui/globals.d.ts index 6b52a33d8..fea9b0814 100644 --- a/ui/globals.d.ts +++ b/ui/globals.d.ts @@ -46,6 +46,7 @@ declare global { get_img2img_tab_index?: (...args: unknown[]) => unknown[]; // ui/ui.ts modelmerger?: (...args: unknown[]) => unknown[]; // ui/ui.ts restartReload?: (initial?: boolean) => void; // ui/ui.ts + set_theme?: (theme: string) => void; // ui/ui.ts selected_gallery_index?: () => number; // ui/ui.ts selected_gallery_files?: (...args: unknown[]) => unknown[]; // ui/ui.ts send_to_kanvas?: (gallery: { data?: string }[]) => void; // ui/ui.ts diff --git a/ui/ui.ts b/ui/ui.ts index 6d358a7a3..505bb559b 100644 --- a/ui/ui.ts +++ b/ui/ui.ts @@ -25,7 +25,7 @@ function rememberGallerySelection(name) { // dummy } -function set_theme(theme) { +export function set_theme(theme) { const gradioURL = window.location.href; if (!gradioURL.includes('?__theme=')) window.location.replace(`${gradioURL}?__theme=${theme}`); } @@ -859,3 +859,4 @@ window.currentImageResolutionimg2img = currentImageResolutionimg2img; window.currentImageResolutioncontrol = currentImageResolutioncontrol; window.updateImg2imgResizeToTextAfterChangingImage = updateImg2imgResizeToTextAfterChangingImage; window.create_submit_args = create_submit_args; +window.set_theme = set_theme; diff --git a/wiki b/wiki index b05574e37..59e1245e3 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit b05574e376765ff3c2711c5bbce183c2ea97e13c +Subproject commit 59e1245e3bc205b7755d7cbe95db4a563c19ffcc