Show download size when model length is unavailable
Build and publish frontend / publish (push) Successful in 49s

This commit is contained in:
Ein Anderssono
2026-10-16 07:55:18 +02:00
parent 291fdcbf08
commit 0bee9f40d3
4 changed files with 24 additions and 7 deletions
+2
View File
@@ -264,6 +264,8 @@ test('Piper model download progress is reported as a bounded percentage', async
assert.match(h.states.at(-1).message, /50 procent/);
h.piperProgressCallbacks[0]({loaded: 90_000_000, total: 63_000_000});
assert.match(h.states.at(-1).message, /100 procent/);
h.piperProgressCallbacks[0]({loaded: 10 * 1024 * 1024, total: 0});
assert.match(h.states.at(-1).message, /10 MB hämtade/);
});
test('Piper output keeps per-character pitch and rate stable', async () => {