diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 1bf2a8b3a..802364f6c 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -711,31 +711,31 @@ // poor mans markdown replacement const Markdownish = (params) => { - const md = params.text - .replace(/&/g, '&') - .replace(//g, '>') - .replace(/^#{1,6} (.*)$/gim, '
$1
')
- .replace(/`(.*?)`/g, '$1
')
- .replace(/\n/gim, '$1
')
+ .replace(/\n/gim, '${chunks[i]}
`;
+ }
+ }
+
+ const restoredText = chunks.join('');
+
+ return html``;
};
- const ModelGenerationInfo = (params) => {
- if (!llamaStats.value) {
- return html``
- }
- return html`
-
- ${llamaStats.value.predicted_per_token_ms.toFixed()}ms per token, ${llamaStats.value.predicted_per_second.toFixed(2)} tokens per second
-
- `
- }
// simple popover impl
const Popover = (props) => {