We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 634122a commit 3c1322fCopy full SHA for 3c1322f
src/ImageClassifier/index.js
@@ -38,6 +38,7 @@ class ImageClassifier {
38
39
async loadModel() {
40
this.model = await this.modelToUse.load(this.version, this.alpha);
41
+ return this;
42
}
43
44
async predictInternal(imgToPredict, numberOfClasses) {
src/utils/callcallback.js
@@ -1,3 +1,8 @@
1
+// Copyright (c) 2018 ml5
2
+//
3
+// This software is released under the MIT License.
4
+// https://opensource.org/licenses/MIT
5
+
6
export default function callCallback(promise, callback) {
7
return callback ? promise.then((result) => {
8
callback(undefined, result);
0 commit comments