From 9858acee7b8d0a0a302477919bd530f34655b81d Mon Sep 17 00:00:00 2001 From: Lu Guanghua <102669562+Touch-Night@users.noreply.github.com> Date: Mon, 18 Sep 2023 04:35:43 +0800 Subject: [PATCH] Fix unexpected extensions load after gradio restart (#3965) --- modules/extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/extensions.py b/modules/extensions.py index 796ff072..6c072504 100644 --- a/modules/extensions.py +++ b/modules/extensions.py @@ -27,6 +27,7 @@ def apply_settings(extension, name): def load_extensions(): global state, setup_called + state = {} for i, name in enumerate(shared.args.extensions): if name in available_extensions: if name != 'api':