Skip to content

Commit

Permalink
Fix AttributeError in Deploy layer (#93)
Browse files Browse the repository at this point in the history
* add warning

* change error msg

---------

Co-authored-by: vorozhkog <vorozkhog@icloud.com>
  • Loading branch information
vorozhkog and vorozhkog authored Oct 24, 2024
1 parent 1cd7688 commit d094326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/dtl/actions/neural_networks/deploy/layout/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def save_model_settings(

elif model_source == "Custom models":
model_source = "Custom models"
if model_selector_sidebar_custom_model_table.get_selected_row() is None:
raise RuntimeError("Please, select a model before saving it.")
model_params = model_selector_sidebar_custom_model_table.get_selected_model_params()

stop_model_session = model_selector_stop_model_after_pipeline_checkbox.is_checked()
Expand Down

0 comments on commit d094326

Please sign in to comment.