Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function smooth(prediction) {

async function process(audio, sampleRate) {
const spec = await preprocess([audio, sampleRate]);
const input = specToInputTensor(event.data);
const input = specToInputTensor(spec);
const model = await modelPromise;
const predictionTensor = tf.tidy(function() {
return model.predict(input);
Expand Down