Skip to content

Commit

Permalink
clear label if tab value changed
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Jan 12, 2024
1 parent 3498a92 commit 4b30ab8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions train/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,13 @@ def close_dialog():
app.stop()


@model_tabs.value_changed
def model_tab_changed(value):
if value == "Pretrained models":
model_not_found_text.hide()
model_select_done.hide()


@select_model_button.click
def select_model():
weights_type = model_tabs.get_active_tab()
Expand Down

0 comments on commit 4b30ab8

Please sign in to comment.