Improve the production frontend

This commit is contained in:
Urtzi Alfaro
2025-09-21 07:45:19 +02:00
parent 5e941f5f03
commit 13ca3e90b4
21 changed files with 1416 additions and 1357 deletions

View File

@@ -117,7 +117,10 @@ const ModelsConfigPage: React.FC = () => {
model,
isTraining,
lastTrainingDate: model?.created_at,
accuracy: model?.training_metrics?.mape ? (100 - model.training_metrics.mape) : undefined,
accuracy: model ?
(model.training_metrics?.mape !== undefined ? (100 - model.training_metrics.mape) :
(model as any).mape !== undefined ? (100 - (model as any).mape) :
undefined) : undefined,
status: model
? (isTraining ? 'training' : 'active')
: 'no_model'