Argmax Custom Components for Gradio
Project description
tags: [gradio-custom-component, Slider] title: argmax_gradio_components short_description: Custom components for Gradio colorFrom: blue colorTo: yellow sdk: gradio pinned: false app_file: space.py
argmax_gradio_components
🧩 Custom Gradio components by Argmax, Inc.
Components
- RangeSlider: Double-thumb slider component for precise interval selection within a certain range.
Installation
pip install argmax_gradio_components
RangeSlider
Usage
import gradio as gr
from argmax_gradio_components import RangeSlider
with gr.Blocks() as demo:
range_slider = RangeSlider(minimum=0, maximum=100, label="Select Range")
output = gr.Markdown("Selected range: {0} to {1}")
range_slider.change(
lambda x: f"Selected range: {x[0]} to {x[1]}",
inputs=range_slider,
outputs=output
)
demo.launch()
Component Details
Initialization
| name | type | default | description |
|---|---|---|---|
minimum |
float
|
0 |
Minimum value for slider. |
maximum |
float
|
100 |
Maximum value for slider. |
value |
tuple[float, float] | Callable | None
|
None |
Default value. If callable, the function will be called whenever the app loads to set the initial value of the component. |
step |
float | None
|
None |
Increment between slider values. |
label |
str | None
|
None |
The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. |
visible |
bool
|
True |
If False, component will be hidden. |
Events
| name | description |
|---|---|
change |
Triggered when the value of the RangeSlider changes either because of user input OR because of a function update. |
input |
This listener is triggered when the user changes the value of the RangeSlider. |
release |
This listener is triggered when the user releases the mouse on this RangeSlider. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file argmax_gradio_components-0.1.0.tar.gz.
File metadata
- Download URL: argmax_gradio_components-0.1.0.tar.gz
- Upload date:
- Size: 44.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90ae0614325c1444fec95e8a043f06eb66ae213dfb06a999a147eef1d2463b13
|
|
| MD5 |
251cabc30b5e0854608dfe1682a09a39
|
|
| BLAKE2b-256 |
c141ec1b838bf31bee8fd5777ffafb514274acb832201619c876c2a87fba0881
|
File details
Details for the file argmax_gradio_components-0.1.0-py3-none-any.whl.
File metadata
- Download URL: argmax_gradio_components-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea87c152d13c9a3b33c8da83b670ae502c26127664b1eab001fe63de3ed8fac2
|
|
| MD5 |
2626c5266d678519a0d139ed215b5c21
|
|
| BLAKE2b-256 |
f1652d2ab2f4ad994ad6a5ae50ad8c403e461adfd230636818a719cfb09bbde0
|