refac
Some checks failed
Deploy to HuggingFace Spaces / check-secret (push) Successful in 17s
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Failing after 3m5s
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Failing after 2m54s
Create and publish Docker images with specific build args / merge-main-images (push) Has been skipped
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Failing after 3m8s
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Failing after 3m25s
Create and publish Docker images with specific build args / merge-cuda-images (push) Has been skipped
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Failing after 4m18s
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Failing after 3m32s
Create and publish Docker images with specific build args / merge-ollama-images (push) Has been skipped
Python CI / Format Backend (3.11) (push) Failing after 1m31s
Frontend Build / Format & Build Frontend (push) Failing after 1m18s
Frontend Build / Frontend Unit Tests (push) Failing after 1m13s
Integration Test / Run Cypress Integration Tests (push) Failing after 2m36s
Integration Test / Run Migration Tests (push) Failing after 1m46s
Deploy to HuggingFace Spaces / deploy (push) Has been skipped

This commit is contained in:
Timothy Jaeryang Baek 2024-11-18 22:49:38 -08:00
parent 5ad64c7998
commit da8f7cff2f

View File

@ -75,7 +75,6 @@
await tick(); await tick();
}; };
let mounted = false;
let selectedModelIdx = 0; let selectedModelIdx = 0;
$: if (selectedModels.length > 0) { $: if (selectedModels.length > 0) {
@ -84,13 +83,10 @@
$: models = selectedModels.map((id) => $_models.find((m) => m.id === id)); $: models = selectedModels.map((id) => $_models.find((m) => m.id === id));
onMount(() => { onMount(() => {});
mounted = true;
});
</script> </script>
{#if mounted} <div class="m-auto w-full max-w-6xl px-2 xl:px-20 translate-y-6 py-24 text-center">
<div class="m-auto w-full max-w-6xl px-2 xl:px-20 translate-y-6 py-24 text-center">
{#if $temporaryChatEnabled} {#if $temporaryChatEnabled}
<Tooltip <Tooltip
content="This chat won't appear in history and your messages will not be saved." content="This chat won't appear in history and your messages will not be saved."
@ -226,5 +222,4 @@
/> />
</div> </div>
</div> </div>
</div> </div>
{/if}