Skip to content

Commit

Permalink
lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shiffman authored and bomanimc committed Nov 4, 2020
1 parent 62146d4 commit f7f02a2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions examples/p5js/CharRNN/CharRNN_Interactive/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function modelReady() {

// Has 500 milliseconds passed since the last time a change was made?
function checkGenerate() {
let passed = millis() - last;
const passed = millis() - last;
if (passed > 500 && !generated) {
generate();
generated = true;
Expand Down Expand Up @@ -88,17 +88,17 @@ function generate() {

// Generate text with the charRNN
charRNN.generate(data, gotData);
}
}

// Update the DOM elements with typed and generated text
function gotData(err, result) {
runningInference = false;
if (err) {
console.error(err);
return;
}
select('#status').html('Ready!');
select('#original').html(original);
select('#prediction').html(result.sample);
}
// Update the DOM elements with typed and generated text
function gotData(err, result) {
runningInference = false;
if (err) {
console.error(err);
return;
}
select('#status').html('Ready!');
select('#original').html(original);
select('#prediction').html(result.sample);
}

0 comments on commit f7f02a2

Please sign in to comment.