gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Typeable value on gradio.Slider

Open apolinario opened this issue 3 years ago • 8 comments

Is your feature request related to a problem? Please describe. Currently the only way to move it is actually moving the slider.

Describe the solution you'd like The input slider could have a typeable element so the user could type the value and snap to it

apolinario avatar Apr 06 '22 19:04 apolinario

We can think about this and see if we can find a UI that isn't too complex. Thanks for creating these issues @apolinario!

abidlabs avatar Apr 06 '22 20:04 abidlabs

I would say that the UI could look exactly the same, maybe with some small visual indication that the field is typeable. Maybe worth on user testing seeing if people already try to click there thinking it is typeable. I did it and it may be the case many more users do

apolinario avatar Apr 06 '22 20:04 apolinario

Another usecase for this is fine adjustments. My model has a 0.1 step on 0 to 100. If is very painful to get to the right place.

Getting back to 5.0 (default) again is almost impossible here: image

If I could just click on 29.3 and adjust. I don't think it would add complexity (on the front-end at least). And it would be a potential huge win I believe

apolinario avatar Apr 06 '22 20:04 apolinario

A related feedback is "increment buttons as an option for sliders, currently on 4k displays where there's a large slider max value and a small step value it's pretty hard to get the exact value you want"

abidlabs avatar Sep 15 '22 21:09 abidlabs

Just bumping this to link a forum post with this request: https://discuss.huggingface.co/t/stable-diffusion-seed-selection-in-webpage-app/

NimaBoscarino avatar Sep 19 '22 20:09 NimaBoscarino

Thanks @NimaBoscarino! I agree we should get this out soon -- @pngwn or @dawoodkhan82 do you have bandwidth for this?

abidlabs avatar Sep 19 '22 22:09 abidlabs

Sure I can work on it. I think Typeable makes sense. Not sure we need the increment button if it's typeable.

dawoodkhan82 avatar Sep 20 '22 04:09 dawoodkhan82

Agreed, I think one or the other is sufficient

abidlabs avatar Sep 20 '22 04:09 abidlabs