freddyaboulton HF staff commited on
Commit
a52964d
β€’
1 Parent(s): 57be732

Update docs.md

Browse files
Files changed (1) hide show
  1. docs.md +3 -5
docs.md CHANGED
@@ -1,5 +1,5 @@
1
  # `gradio_rangeslider`
2
- <img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.1%20-%20orange">
3
 
4
  πŸ› Slider component for selecting a range of values
5
 
@@ -11,8 +11,6 @@ pip install gradio_rangeslider
11
 
12
  ## Usage
13
 
14
- The `RangeSlider` functions similarly to the core Gradio `Slider` except that it shows two draggable thumbtracks. The `value` of the component is a tuple of the two endpoints of the range.
15
-
16
  ```python
17
 
18
  import gradio as gr
@@ -27,8 +25,7 @@ with gr.Blocks() as demo:
27
  range_slider = RangeSlider(minimum=0, maximum=100, value=(0, 100))
28
  range_ = gr.Markdown(value=text.format(min=0, max=100))
29
  range_slider.change(lambda s: text.format(min=s[0], max=s[1]), range_slider, range_,
30
- show_progress="hide")
31
-
32
 
33
 
34
  if __name__ == "__main__":
@@ -266,6 +263,7 @@ bool
266
  |:-----|:------------|
267
  | `change` | Triggered when the value of the RangeSlider changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See `.input()` for a listener that is only triggered by user input. |
268
  | `input` | This listener is triggered when the user changes the value of the RangeSlider. |
 
269
 
270
 
271
 
 
1
  # `gradio_rangeslider`
2
+ <a href="https://pypi.org/project/gradio_rangeslider/" target="_blank"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/gradio_rangeslider"></a>
3
 
4
  πŸ› Slider component for selecting a range of values
5
 
 
11
 
12
  ## Usage
13
 
 
 
14
  ```python
15
 
16
  import gradio as gr
 
25
  range_slider = RangeSlider(minimum=0, maximum=100, value=(0, 100))
26
  range_ = gr.Markdown(value=text.format(min=0, max=100))
27
  range_slider.change(lambda s: text.format(min=s[0], max=s[1]), range_slider, range_,
28
+ show_progress="hide", trigger_mode="always_last")
 
29
 
30
 
31
  if __name__ == "__main__":
 
263
  |:-----|:------------|
264
  | `change` | Triggered when the value of the RangeSlider changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See `.input()` for a listener that is only triggered by user input. |
265
  | `input` | This listener is triggered when the user changes the value of the RangeSlider. |
266
+ | `release` | This listener is triggered when the user releases the mouse on this RangeSlider. |
267
 
268
 
269