From 03f18c2d27b0abdc2688bbf2dda7ea81433fe650 Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Sun, 9 Jul 2023 21:48:27 +0200 Subject: [PATCH] fix bug, these issues were resolved --- tagger/ui.py | 4 ++++ tagger/uiset.py | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tagger/ui.py b/tagger/ui.py index 99ffd11..f58856d 100644 --- a/tagger/ui.py +++ b/tagger/ui.py @@ -121,6 +121,10 @@ def on_tag_search_filter_change( def on_ui_tabs(): # If checkboxes misbehave you have to adapt the default.json preset + # FIXME: sliders misbehave: do not always pass the right value + # FIXME: Textbox does not always pass the right value + # FIXME: on exlusion tab the tag click does not work in the percentages box + with gr.Blocks(analytics_enabled=False) as tagger_interface: with gr.Row().style(equal_height=False): with gr.Column(variant='panel'): diff --git a/tagger/uiset.py b/tagger/uiset.py index d61b2eb..b6ff835 100644 --- a/tagger/uiset.py +++ b/tagger/uiset.py @@ -432,7 +432,6 @@ def apply_filters(cls, data) -> Set[str]: if fi_key != '': cls.query[fi_key] = (data[0], index) - # TODO: try unsetting fi_key in in_db @classmethod def finalize_batch(cls, count: int) -> ItRetTP: @@ -447,9 +446,6 @@ def finalize_batch(cls, count: int) -> ItRetTP: for i, val in map(get_i_wt, lst): if i not in cls.in_db: continue - if ent in cls.in_db[i][3+index]: - raise ValueError(f'ent {ent} already in db: {val} ' - f'vs {cls.in_db[i][3+index][ent]}') cls.in_db[i][3+index][ent] = val # process the retrieved from db and add them to the stats