chore: adjusted delay time before training starts

This commit is contained in:
utin-francis-peter
2024-06-21 18:04:30 +01:00
parent c11034edcd
commit c9a2034936

View File

@@ -217,7 +217,7 @@ function Upload({
const { task_id } = JSON.parse(xhr.responseText);
setTimeoutRef.current = setTimeout(() => {
setProgress({ type: 'TRAINIING', percentage: 0, taskId: task_id });
}, 2000);
}, 3000);
};
xhr.open('POST', `${apiHost + '/api/upload'}`);
xhr.send(formData);
@@ -248,7 +248,7 @@ function Upload({
const { task_id } = JSON.parse(xhr.responseText);
setTimeoutRef.current = setTimeout(() => {
setProgress({ type: 'TRAINIING', percentage: 0, taskId: task_id });
}, 2000);
}, 3000);
};
xhr.open('POST', `${apiHost + '/api/remote'}`);
xhr.send(formData);