From 46c4654226ccc192186b7534cb4b77aec0e6b118 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 7 Apr 2023 00:52:02 -0300 Subject: [PATCH] More PEP8 stuff --- extensions/gallery/script.py | 10 +++++----- modules/extensions.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/gallery/script.py b/extensions/gallery/script.py index 8ffe8906..993ef273 100644 --- a/extensions/gallery/script.py +++ b/extensions/gallery/script.py @@ -87,10 +87,10 @@ def ui(): update = gr.Button("Refresh") gr.HTML(value="") gallery = gr.Dataset(components=[gr.HTML(visible=False)], - label="", - samples=generate_html(), - elem_classes=["character-gallery"], - samples_per_page=50 - ) + label="", + samples=generate_html(), + elem_classes=["character-gallery"], + samples_per_page=50 + ) update.click(generate_html, [], gallery) gallery.select(select_character, None, gradio['character_menu']) diff --git a/modules/extensions.py b/modules/extensions.py index 8f435802..fca68188 100644 --- a/modules/extensions.py +++ b/modules/extensions.py @@ -28,7 +28,7 @@ def load_extensions(): def iterator(): for name in sorted(state, key=lambda x: state[x][1]): - if state[name][0] == True: + if state[name][0]: yield eval(f"extensions.{name}.script"), name # Extension functions that map string -> string