Upload folder using huggingface_hub
Browse files
6.23.0/annotatedimage/Index.svelte
CHANGED
|
@@ -113,11 +113,11 @@
|
|
| 113 |
: `hsla(${Math.round(
|
| 114 |
(i * 360) / gradio.props.value.annotations.length
|
| 115 |
)}, 100%, 50%, 0.3)`}"
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
>
|
| 122 |
{ann.label}
|
| 123 |
</button>
|
|
|
|
| 113 |
: `hsla(${Math.round(
|
| 114 |
(i * 360) / gradio.props.value.annotations.length
|
| 115 |
)}, 100%, 50%, 0.3)`}"
|
| 116 |
+
onmouseover={() => handle_mouseover(ann.label)}
|
| 117 |
+
onfocus={() => handle_mouseover(ann.label)}
|
| 118 |
+
onmouseout={() => handle_mouseout()}
|
| 119 |
+
onblur={() => handle_mouseout()}
|
| 120 |
+
onclick={() => handle_click(i, ann.label)}
|
| 121 |
>
|
| 122 |
{ann.label}
|
| 123 |
</button>
|