Skip to content

Commit

Permalink
Merge pull request nature-of-code#43 from sejomagno/patch-4
Browse files Browse the repository at this point in the history
Added FileInput as an alternative to dropping a file
  • Loading branch information
shiffman authored Apr 18, 2017
2 parents 7dd078d + 9aa2073 commit 3004d9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions week5-cnn-tensorflow/03_resnet50_flask_p5/static/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ function setup() {

// Add an event for when a file is dropped onto the canvas
c.drop(gotFile);
// Add the same event for when a file is added to the File Input
var fileInput = createFileInput(gotFile);
}

function classify(img) {
Expand Down

0 comments on commit 3004d9a

Please sign in to comment.