Task type | User Confirmed | Result | Status | Status Message | Created | |
---|---|---|---|---|---|---|
{#if task.type == 1} Image Run {:else if task.type == 2} Model training {:else if task.type == 3} Model Re-training {:else} {task.type} {/if} |
{#if task.type == 1}
|
{#if task.type == 1}
{#if task.status == 4}
{#if task.user_confirmed == 0}
User has not agreed to the result of this task
{:else if task.user_confirmed == -1}
User has disagred with the result of this task
{:else if task.user_confirmed == 1}
User has aggred with the result of this task
{:else}
TODO {task.user_confirmed}
{/if}
{#if task.user_confirmed != 1}
{:else}
-
{/if}
{:else if [2, 3].includes(task.type)}{:else}
TODO Handle {task.type}
{/if}
|
{#if task.status == 4} {#if task.type == 1} {@const temp = JSON.parse(task.result)} {temp.class}({Math.round(temp.confidence * 100000) / 1000}%) {:else} {task.result} {/if} {/if} |
|
{task.status_message} | {new Date(task.created).toLocaleString()} |