Fix new Frontend 15

This commit is contained in:
Urtzi Alfaro
2025-08-04 21:46:12 +02:00
parent 8bb14ecc4f
commit 32a7b913d0
10 changed files with 705 additions and 217 deletions

View File

@@ -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]: