Adjust Value to Fix .Label Display (#7276)

* Bug fix

* add changeset

* format

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Cody DeHaan 2024-02-02 13:16:04 -05:00 committed by GitHub
parent 757dba66ba
commit a3aa22f6f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/label": patch
"gradio": patch
---
fix:Adjust Value to Fix .Label Display

View File

@ -42,7 +42,7 @@
style="width: {confidence_set.confidence *
100}%; background: var(--stat-background-fill);
"
value={confidence_set.confidence * 100}
value="100"
aria-label={Math.round(confidence_set.confidence * 100) + "%"}
/>