stream.wasm : add web-based real-time transcription (#112)

This commit is contained in:
Georgi Gerganov
2022-11-25 23:57:46 +02:00
parent be16dfa038
commit 3c390ffe38
9 changed files with 679 additions and 9 deletions

View File

@ -19,6 +19,12 @@ var printTextarea = (function() {
};
})();
async function clearCache() {
if (confirm('Are you sure you want to clear the cache?\nAll the models will be downloaded again.')) {
indexedDB.deleteDatabase(dbName);
}
}
// fetch a remote file from remote URL using the Fetch API
async function fetchRemote(url, cbProgress, cbPrint) {
cbPrint('fetchRemote: downloading with fetch()...');