disable gradio queues on demand

This commit is contained in:
Vladimir Mandic
2023-04-18 08:06:16 -04:00
parent 86783d164c
commit a975a6a03d
6 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ def add_style(name: str, prompt: str, negative_prompt: str):
shared.prompt_styles.styles[style.name] = style
# Save all loaded prompt styles: this allows us to update the storage format in the future more easily, because we
# reserialize all styles every time we save them
shared.prompt_styles.save_styles('styles.csv')
shared.prompt_styles.save_styles(shared.opts.styles_dir)
return [gr.Dropdown.update(visible=True, choices=list(shared.prompt_styles.styles)) for _ in range(2)]