diff --git a/demo.gif b/demo.gif index dfd98694..5fd564ca 100644 Binary files a/demo.gif and b/demo.gif differ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5bd22b93..ca3a34ce 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -123,7 +123,10 @@ topBarDiv.style.borderTopLeftRadius = '8px'; let langDiv = document.createElement('div'); - langDiv.textContent = code?.className.split(' ')[0].slice(9); + + let codeClassNames = code?.className.split(' '); + langDiv.textContent = + codeClassNames[0] === 'hljs' ? codeClassNames[1].slice(9) : codeClassNames[0].slice(9); langDiv.style.color = 'white'; langDiv.style.margin = '4px'; langDiv.style.fontSize = '0.75rem'; @@ -771,7 +774,7 @@ { - autoScroll = window.innerHeight + window.scrollY >= document.body.offsetHeight - 30; + autoScroll = window.innerHeight + window.scrollY >= document.body.offsetHeight - 40; }} /> @@ -850,16 +853,12 @@
{#if messages.length == 0} -
+
- +
-
- Get up and running with large language models, locally. -
- -
- Run Llama 2, Code Llama, and other models.
Customize and create your own. +
+ How can I help you today?
{:else}