Fix new Frontend 15
This commit is contained in:
@@ -446,6 +446,7 @@ class BakeryMLTrainer:
|
||||
logger.info(f"Successfully trained model for {product_name}")
|
||||
|
||||
completed_products = i + 1
|
||||
i = i + 1
|
||||
progress = base_progress + int((completed_products / total_products) * (max_progress - base_progress))
|
||||
|
||||
if self.status_publisher:
|
||||
@@ -469,6 +470,7 @@ class BakeryMLTrainer:
|
||||
}
|
||||
|
||||
completed_products = i + 1
|
||||
i = i + 1
|
||||
|
||||
if self.status_publisher:
|
||||
self.status_publisher.products_completed = completed_products
|
||||
@@ -479,7 +481,6 @@ class BakeryMLTrainer:
|
||||
step_details=f"Failed training for {product_name}: {str(e)}"
|
||||
)
|
||||
|
||||
|
||||
return training_results
|
||||
|
||||
def _calculate_training_summary(self, training_results: Dict[str, Any]) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user