From f58e423342f16f744014045131a04fc2d7513519 Mon Sep 17 00:00:00 2001 From: Belem Zhang Date: Tue, 10 Oct 2023 16:27:17 +0800 Subject: [PATCH] log --- src/lib/assets/js/utils.js | 4 ++-- src/lib/components/ConfigNumOfRuns.svelte | 6 +++--- src/lib/components/InferenceLog.svelte | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/assets/js/utils.js b/src/lib/assets/js/utils.js index 6a3a4d0..00d88d1 100644 --- a/src/lib/assets/js/utils.js +++ b/src/lib/assets/js/utils.js @@ -381,8 +381,8 @@ export const urlToStore = (urlSearchParams, modelIdFromUrl) => { numOfRuns = parseInt(numOfRuns); if (numOfRuns <= 1) { numOfRuns = 1; - } else if (numOfRuns > 1000) { - numOfRuns = 1000; + } else if (numOfRuns > 500) { + numOfRuns = 500; } if (modelIdFromUrl) { diff --git a/src/lib/components/ConfigNumOfRuns.svelte b/src/lib/components/ConfigNumOfRuns.svelte index a3ef600..693578a 100644 --- a/src/lib/components/ConfigNumOfRuns.svelte +++ b/src/lib/components/ConfigNumOfRuns.svelte @@ -24,7 +24,7 @@ {#if numOfRuns === 1} {numOfRuns} Run - {:else if numOfRuns > 1 && numOfRuns <= 1000} + {:else if numOfRuns > 1 && numOfRuns <= 500} {numOfRuns} Runs {:else} # Runs @@ -33,8 +33,8 @@
diff --git a/src/lib/components/InferenceLog.svelte b/src/lib/components/InferenceLog.svelte index 39b76a1..7d763d0 100644 --- a/src/lib/components/InferenceLog.svelte +++ b/src/lib/components/InferenceLog.svelte @@ -1,7 +1,7 @@ -{#if info} +{#if info.length > 0}
{#each info as i}
{i}