From 8fad84abc2c8eb90718ef7d7084a22c740e20d9b Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 24 Mar 2023 16:51:27 -0300 Subject: [PATCH] Update extensions.py --- modules/extensions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/extensions.py b/modules/extensions.py index b363bc39..c55dc978 100644 --- a/modules/extensions.py +++ b/modules/extensions.py @@ -1,3 +1,5 @@ +import traceback + import gradio as gr import extensions @@ -18,6 +20,7 @@ def load_extensions(): print('Ok.') except: print('Fail.') + traceback.print_exc() # This iterator returns the extensions in the order specified in the command-line def iterator(): @@ -38,6 +41,7 @@ def apply_extensions(text, typ): def create_extensions_block(): global setup_called + # Updating the default values for extension, name in iterator(): if hasattr(extension, 'params'): @@ -47,6 +51,7 @@ def create_extensions_block(): extension.params[param] = shared.settings[_id] should_display_ui = False + # Running setup function if not setup_called: for extension, name in iterator():