Skip to content

Commit 6d65a64

Browse files
author
meowoodie
committed
revise classifier
1 parent 6c6f215 commit 6d65a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloud/algo/classifier.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ exports.Classifier = function (algo_type, tag, labels) {
2020
classify_url = Algo[algo_type]["classify"];
2121

2222
var promises = [];
23-
labels.forEach(function (event_label) {
24-
promises.push(Algo[algo_type]["getModel"](_tag, event_label));
23+
labels.forEach(function (label) {
24+
promises.push(Algo[algo_type]["getModel"](_tag, label));
2525
});
2626

2727
return AV.Promise.all(promises).then(

0 commit comments

Comments
 (0)