ThereforeGames / unprompted

Templating language written for Stable Diffusion workflows. Available as an extension for the Automatic1111 WebUI.
777 stars 66 forks source link

Refresh templates in Wizard? #172

Closed HWiese1980 closed 1 year ago

HWiese1980 commented 1 year ago

It's either I am visually impaired or there is no way to refresh the available templates in the Unprompted Wizard, other than restarting A1111, is that correct?

I would like to have a button that does exactly that. Refreshing the templates, that is, not restarting A1111. Thanks!

ThereforeGames commented 1 year ago

Hi @HWiese1980,

You're not blind. :-) I need to do some research to figure out how to implement a refresh button for this - it must create a lot of new Gradio UI components in addition to updating the dropdown list.

I think the ControlNet extension may have similar functionality, so I may take a peek at their source code when I find time.

It's a good suggestion though, thanks!

EDIT: Oh, I should also mention that you don't have to restart the entire application - you can use the "Reload UI" button in the settings which is considerably faster.

HWiese1980 commented 1 year ago

Hah, thank you, that would be awesome! I already started questioning my own judgement. :-D

And you're welcome :-D

ThereforeGames commented 1 year ago

Hi @HWiese1980,

You can now refresh templates and shortcodes in Unprompted v9.15.0! This required me to refactor a surprisingly large amount of code, so please let me know if you run into any issues in the new version. Thanks.