We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf85d97 commit 0d7672aCopy full SHA for 0d7672a
src/store.ts
@@ -498,6 +498,9 @@ const createMlStore = (logging: Logging) => {
498
trainModelDialogStage: TrainModelDialogStage.TrainingInProgress,
499
trainModelProgress: 0,
500
});
501
+ // Delay so we get UI change before training starts. The initial part of training
502
+ // can block the UI. 50 ms is not sufficient, so use 100 for now.
503
+ await new Promise((res) => setTimeout(res, 100));
504
const trainingResult = await trainModel({
505
data: gestures,
506
onProgress: (trainModelProgress) =>
0 commit comments