Move bot_picture.py inside the extension

This commit is contained in:
oobabooga 2023-02-25 03:00:19 -03:00
parent 5ac24b019e
commit 91f5852245
3 changed files with 15 additions and 18 deletions

View file

@ -33,10 +33,11 @@ def apply_extensions(text, typ):
def create_extensions_block():
# Updating the default values
for extension, name in iterator():
for param in extension.params:
_id = f"{name}-{param}"
if _id in shared.settings:
extension.params[param] = shared.settings[_id]
if hasattr(extension, 'params'):
for param in extension.params:
_id = f"{name}-{param}"
if _id in shared.settings:
extension.params[param] = shared.settings[_id]
# Creating the extension ui elements
for extension, name in iterator():