mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
Fix typo in components.py (#3235)
* Fix typo in components.py covert -> convert * Update CHANGELOG.md --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
parent
e6d6ea1452
commit
170ad3d785
@ -97,6 +97,7 @@ By [@dawoodkhan82](https://github.com/dawoodkhan82) in [PR 3165](https://github.
|
||||
* The `clear` event is now triggered when images are cleared by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 3218](https://github.com/gradio-app/gradio/pull/3218)
|
||||
* Fix bug where auth cookies where not sent when connecting to an app via http by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 3223](https://github.com/gradio-app/gradio/pull/3223)
|
||||
* Ensure latext CSS is always applied in light and dark mode by [@pngwn](https://github.com/pngwn) in [PR 3233](https://github.com/gradio-app/gradio/pull/3233)
|
||||
* Fixed comment typo in components.py by [@eltociear](https://github.com/eltociear) in [PR 3235](https://github.com/gradio-app/gradio/pull/3235)
|
||||
|
||||
## Documentation Changes:
|
||||
* Sort components in docs by alphabetic order by [@aliabd](https://github.com/aliabd) in [PR 3152](https://github.com/gradio-app/gradio/pull/3152)
|
||||
|
@ -468,7 +468,7 @@ class Number(
|
||||
interactive: if True, will be editable; if False, editing will be disabled. If not provided, this is inferred based on whether the component is used as an input or output.
|
||||
visible: If False, component will be hidden.
|
||||
elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
|
||||
precision: Precision to round input/output to. If set to 0, will round to nearest integer and covert type to int. If None, no rounding happens.
|
||||
precision: Precision to round input/output to. If set to 0, will round to nearest integer and convert type to int. If None, no rounding happens.
|
||||
"""
|
||||
self.precision = precision
|
||||
IOComponent.__init__(
|
||||
@ -581,7 +581,7 @@ class Number(
|
||||
"If delta_type='percent', pick a value of delta such that x * delta is an integer. "
|
||||
"If delta_type='absolute', pick a value of delta that is an integer."
|
||||
)
|
||||
# run_interpretation will preprocess the neighbors so no need to covert to int here
|
||||
# run_interpretation will preprocess the neighbors so no need to convert to int here
|
||||
negatives = (
|
||||
np.array(x) + np.arange(-self.interpretation_steps, 0) * delta
|
||||
).tolist()
|
||||
|
Loading…
x
Reference in New Issue
Block a user