fixed model?

This commit is contained in:
Boof 2023-09-11 11:40:58 +02:00 committed by GitHub
parent f9460828bb
commit c59e376fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,11 @@
async function createModel() {
const checkpointURL = URL + "model.json"; // model topology
const metadataURL = URL + "metadata.json"; // model metadata
const recognizer = speechCommands.create(
"BROWSER_FFT", // fourier transform type, not useful to change
undefined, // speech commands vocabulary feature, not useful for your models
checkpointURL,
metadataURL);
checkpointURL);
// check that model and metadata are loaded via HTTPS requests.
await recognizer.ensureModelLoaded();