This commit is contained in:
allegroai 2021-05-31 15:43:02 +03:00
parent 5e6b4ebe5d
commit 206d86ec5b

View File

@ -1104,9 +1104,11 @@ class OutputModel(BaseModel):
# noinspection PyProtectedMember # noinspection PyProtectedMember
if not self._task._get_model_config_text(): if not self._task._get_model_config_text():
# noinspection PyProtectedMember # noinspection PyProtectedMember
task._set_model_config(config_text=model.model_design) task._set_model_config(
config_text=model.model_design if hasattr(model, "model_design") else model.design.get("design", "")
)
if not self._task.get_labels_enumeration(): if not self._task.get_labels_enumeration():
task.set_model_label_enumeration(model.data.labels) task.set_model_label_enumeration(model.data.labels if hasattr(model, "data") else model.labels)
if self._base_model: if self._base_model:
self._base_model.update_for_task( self._base_model.update_for_task(