diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 3ccdbcc73..e18e746b4 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -666,6 +666,16 @@ } } + const rephraseChat = (e) => { + e.preventDefault(); + const _transcript = session.value.transcript; + _transcript.pop(); + const _chatMsg = _transcript.pop(); + transcriptUpdate(_transcript); + if (typeof (_chatMsg[1]) === 'string') + message.value = _chatMsg[1]; + } + return html`
`