diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 986c682d6..07fec6a38 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -141,10 +141,8 @@ gap: 0.5em; } .message-controls > div:nth-child(2) > div { - margin-left: auto; - } - .message-controls > div:nth-child(2) > div:nth-child(1) { display: flex; + margin-left: auto; gap: 0.5em; } @@ -285,7 +283,7 @@ import { llama } from './completion.js'; import { SchemaConverter } from './json-schema-to-grammar.mjs'; - + let selected_image = false; var slot_id = -1; @@ -620,12 +618,12 @@ if (e) e.preventDefault(); talkActive.value = false; - talkRecognition?.stop(); + talkRecognition?.stop(); } const talk = (e) => { e.preventDefault(); - if (talkRecognition) + if (talkRecognition) talkRecognition.start(); else alert("Speech recognition is not supported by this browser."); @@ -685,17 +683,29 @@