Spaces:
Runtime error
Runtime error
Step value does not work
#1
by
mimhle
- opened
Setting the step argument does not affect the slider
import gradio as gr
from gradio_rangeslider import RangeSlider
text = "## The range is: {min} to {max}"
with gr.Blocks() as demo:
range_slider = RangeSlider(minimum=0, maximum=100, value=(0, 100), step=0.01) # does not work as expected
range_ = gr.Markdown(value=text.format(min=0, max=100))
range_slider.change(lambda s: text.format(min=s[0], max=s[1]), range_slider, range_, show_progress="hide")
demo.launch()
I have created a PR that should fix this bug
mimhle
changed discussion status to
closed