mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Allow extensions to have custom display_name (#1242)
Co-authored-by: oobabooga <112222186+oobabooga@users.noreply.github.com>
This commit is contained in:
parent
ad0b71af11
commit
acf3dbbcc5
@ -173,5 +173,7 @@ def create_extensions_block():
|
||||
with gr.Column(elem_id="extensions"):
|
||||
for extension, name in iterator():
|
||||
if hasattr(extension, "ui"):
|
||||
gr.Markdown(f"\n### {name}")
|
||||
gr.Markdown(f"\n### {extension.params['display_name']}"
|
||||
if hasattr(extension, 'params') and extension.params.__contains__('display_name')
|
||||
else f"\n### {name}")
|
||||
extension.ui()
|
||||
|
Loading…
Reference in New Issue
Block a user