mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 09:40:20 +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:
|
if should_display_ui:
|
||||||
with gr.Column(elem_id="extensions"):
|
with gr.Column(elem_id="extensions"):
|
||||||
for extension, name in iterator():
|
for extension, name in iterator():
|
||||||
gr.Markdown(f"\n### {name}")
|
|
||||||
if hasattr(extension, "ui"):
|
if hasattr(extension, "ui"):
|
||||||
|
gr.Markdown(f"\n### {name}")
|
||||||
extension.ui()
|
extension.ui()
|
||||||
|
Loading…
Reference in New Issue
Block a user