Show/hide the extensions block using javascript

This commit is contained in:
oobabooga 2023-03-15 16:34:31 -03:00
parent 348596f634
commit c1959c26ee
5 changed files with 19 additions and 3 deletions

View file

@ -42,7 +42,7 @@ def create_extensions_block():
extension.params[param] = shared.settings[_id]
# Creating the extension ui elements
with gr.Box(elem_id="#extensions"):
with gr.Box(elem_id="extensions"):
gr.Markdown("Extensions")
for extension, name in iterator():
if hasattr(extension, "ui"):