File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ document.addEventListener('DOMContentLoaded', () => {
79
79
80
80
// tag-confident labels
81
81
waitQuerySelector ( '#rating-confidences' ) ,
82
- waitQuerySelector ( '#tag-confidences' )
82
+ waitQuerySelector ( '#tag-confidences' ) ,
83
+ waitQuerySelector ( '#discard-tag-confidences' )
83
84
] ) . then ( elements => {
84
85
85
86
const $keepTags = elements [ 0 ] ;
@@ -88,6 +89,7 @@ document.addEventListener('DOMContentLoaded', () => {
88
89
const $replaceTags = elements [ 3 ] ;
89
90
const $ratingConfidents = elements [ 4 ] ;
90
91
const $tagConfidents = elements [ 5 ] ;
92
+ const $discardTagConfidents = elements [ 6 ] ;
91
93
92
94
let $selectedTextarea = $keepTags ;
93
95
@@ -170,6 +172,7 @@ document.addEventListener('DOMContentLoaded', () => {
170
172
}
171
173
172
174
$tagConfidents . addEventListener ( 'click' , onClickLabels )
175
+ $discardTagConfidents . addEventListener ( 'click' , onClickLabels )
173
176
174
177
} ) . catch ( err => {
175
178
console . error ( err )
Original file line number Diff line number Diff line change 22
22
foreground-color : # e6e6e6 ;
23
23
}
24
24
25
+ # discard-tag-confidences .output-label > div : not (: first-child ) {
26
+ cursor : pointer;
27
+ }
28
+
29
+ # discard-tag-confidences .output-label > div : not (: first-child ): hover {
30
+ foreground-color : # f5f5f5 ;
31
+ }
32
+
33
+ # discard-tag-confidences .output-label > div : not (: first-child ): active {
34
+ foreground-color : # e6e6e6 ;
35
+ }
25
36
# tags a {
26
37
font-weight : inherit;
27
38
color : # 888 ;
Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ def on_tag_search_filter_change(
121
121
def on_ui_tabs ():
122
122
# If checkboxes misbehave you have to adapt the default.json preset
123
123
124
- # FIXME: sliders misbehave: do not always pass the right value
125
- # FIXME: Textbox does not always pass the right value
126
- # FIXME: on exlusion tab the tag click does not work in the percentages box
127
-
128
124
with gr .Blocks (analytics_enabled = False ) as tagger_interface :
129
125
with gr .Row ().style (equal_height = False ):
130
126
with gr .Column (variant = 'panel' ):
@@ -338,7 +334,7 @@ def on_ui_tabs():
338
334
)
339
335
excluded_tag_confidences = gr .Label (
340
336
label = 'Excluded Tag confidences' ,
341
- elem_id = 'tag-confidences' ,
337
+ elem_id = 'discard- tag-confidences' ,
342
338
)
343
339
344
340
tab_include .select (fn = wrap_gradio_gpu_call (on_interrogate ),
You can’t perform that action at this time.
0 commit comments