Skip to content

Commit

Permalink
Adjust Value to Fix .Label Display (#7276)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people committed Feb 2, 2024
1 parent 757dba6 commit a3aa22f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/fruity-rabbits-retire.md
@@ -0,0 +1,6 @@
---
"@gradio/label": patch
"gradio": patch
---

fix:Adjust Value to Fix .Label Display
2 changes: 1 addition & 1 deletion js/label/shared/Label.svelte
Expand Up @@ -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) + "%"}
/>

Expand Down

0 comments on commit a3aa22f

Please sign in to comment.