muerrilla / stable-diffusion-NPW

Negative Prompt Weight: Extension for Stable Diffusion Web UI
The Unlicense
111 stars 10 forks source link

The slider didn't automatically update. #5

Closed songib closed 1 year ago

songib commented 1 year ago

or is it worked that way since the beginning? so I just type the number most of the time, it will be more convenient if the slider updates when we use it, and maybe at 0.05 increment.

muerrilla commented 1 year ago

Sorry, haven't had time to update my webui to the latest version in a while, so not sure what's going on. The slider is supposed to update the number when released (instead of when slid) because of a problem in the older Gradio versions. I'll fix it as soon as I update my webui.

In the mean time you can edit npw.py at line 39 and change weight_input_slider.release to weight_input_slider.change, and at line 22 change step to .05 too.

Fixed it.

songib commented 1 year ago

ah, so it's gradio problem i see. For now, it seems like it's more broken since the slider didn't even update after I use it, so just typed the number for now. ill try reinstall it.

muerrilla commented 1 year ago

It's all working fine over here. Which Gradio version are you on (it's written at the bottom of the webui, just in case)?