mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
More PEP8 stuff
This commit is contained in:
parent
ea6e77df72
commit
46c4654226
@ -87,10 +87,10 @@ def ui():
|
|||||||
update = gr.Button("Refresh")
|
update = gr.Button("Refresh")
|
||||||
gr.HTML(value="<style>" + generate_css() + "</style>")
|
gr.HTML(value="<style>" + generate_css() + "</style>")
|
||||||
gallery = gr.Dataset(components=[gr.HTML(visible=False)],
|
gallery = gr.Dataset(components=[gr.HTML(visible=False)],
|
||||||
label="",
|
label="",
|
||||||
samples=generate_html(),
|
samples=generate_html(),
|
||||||
elem_classes=["character-gallery"],
|
elem_classes=["character-gallery"],
|
||||||
samples_per_page=50
|
samples_per_page=50
|
||||||
)
|
)
|
||||||
update.click(generate_html, [], gallery)
|
update.click(generate_html, [], gallery)
|
||||||
gallery.select(select_character, None, gradio['character_menu'])
|
gallery.select(select_character, None, gradio['character_menu'])
|
||||||
|
@ -28,7 +28,7 @@ def load_extensions():
|
|||||||
|
|
||||||
def iterator():
|
def iterator():
|
||||||
for name in sorted(state, key=lambda x: state[x][1]):
|
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
|
yield eval(f"extensions.{name}.script"), name
|
||||||
|
|
||||||
# Extension functions that map string -> string
|
# Extension functions that map string -> string
|
||||||
|
Loading…
Reference in New Issue
Block a user