Fix broken extensions

This commit is contained in:
oobabooga 2023-03-15 15:11:16 -03:00
parent c5f14fb9b8
commit 348596f634
2 changed files with 16 additions and 11 deletions

View file

@ -1,3 +1,5 @@
import gradio as gr
import extensions
import modules.shared as shared
@ -40,6 +42,8 @@ def create_extensions_block():
extension.params[param] = shared.settings[_id]
# Creating the extension ui elements
for extension, name in iterator():
if hasattr(extension, "ui"):
extension.ui()
with gr.Box(elem_id="#extensions"):
gr.Markdown("Extensions")
for extension, name in iterator():
if hasattr(extension, "ui"):
extension.ui()