From 4e09df4034f52dc487f41843b7ddd0477d75ecd1 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 2 May 2023 19:20:02 -0300 Subject: [PATCH] Only show extension in UI if it has an ui() function --- modules/extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/extensions.py b/modules/extensions.py index e07e90ac..1a6a2d9b 100644 --- a/modules/extensions.py +++ b/modules/extensions.py @@ -128,6 +128,6 @@ def create_extensions_block(): if should_display_ui: with gr.Column(elem_id="extensions"): for extension, name in iterator(): - gr.Markdown(f"\n### {name}") if hasattr(extension, "ui"): + gr.Markdown(f"\n### {name}") extension.ui()