fix model retrain not working closes #93

This commit is contained in:
2024-04-16 16:02:57 +01:00
parent 026932cfab
commit f182b205f8
7 changed files with 144 additions and 179 deletions

View File

@@ -54,7 +54,7 @@
try {
let temp_model: Model = await get(`models/edit?id=${id}`);
if ([3, 6].includes(temp_model.status)) {
if ([3, 7, 6].includes(temp_model.status)) {
setTimeout(getModel, 2000);
}
@@ -143,7 +143,7 @@
>
Model
</button>
{#if _model && [2, 3, 4, 5, 6, 7].includes(_model.status)}
{#if _model && [2, 3, 4, 5, 6, 7, -6, -7].includes(_model.status)}
<button
class="tab"
on:click|preventDefault={setActive('model-data')}
@@ -152,7 +152,7 @@
Model Data
</button>
{/if}
{#if _model && [5, 6, 7].includes(_model.status)}
{#if _model && [5, 6, 7, -6, -7].includes(_model.status)}
<button
class="tab"
on:click|preventDefault={setActive('tasks')}