mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Only show extension in UI if it has an ui() function
This commit is contained in:
parent
d016c38640
commit
4e09df4034
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user