Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -1182,7 +1182,7 @@
|
|
| 1182 |
document.getElementById("metric-ttft").innerText = `${ttft.toFixed(0)}ms`;
|
| 1183 |
document.getElementById("metric-tps").innerText = `${tps.toFixed(1)} t/s`;
|
| 1184 |
|
| 1185 |
-
const decoded = tokenizer.decode(output.slice(inputs.input_ids.dims[1]), { skip_special_tokens: false });
|
| 1186 |
// 5. Parse Output
|
| 1187 |
// Format: <start_function_call>call:add{...}<end_function_call>
|
| 1188 |
const startTag = "<start_function_call>";
|
|
|
|
| 1182 |
document.getElementById("metric-ttft").innerText = `${ttft.toFixed(0)}ms`;
|
| 1183 |
document.getElementById("metric-tps").innerText = `${tps.toFixed(1)} t/s`;
|
| 1184 |
|
| 1185 |
+
const decoded = tokenizer.decode(output[0].slice(inputs.input_ids.dims[1]), { skip_special_tokens: false });
|
| 1186 |
// 5. Parse Output
|
| 1187 |
// Format: <start_function_call>call:add{...}<end_function_call>
|
| 1188 |
const startTag = "<start_function_call>";
|