boazchung commited on
Commit
a0e6dc6
1 Parent(s): 47423a6

Update image-classification.html

Browse files
Files changed (1) hide show
  1. image-classification.html +3 -3
image-classification.html CHANGED
@@ -134,10 +134,10 @@
134
  const url = URL.createObjectURL(file);
135
 
136
  const result = await classifier(url);
137
- if (Promise.resolve(classifier) === classifier) {
138
- console.log("classifier is a Promise object");
139
  } else {
140
- console.log("classifier is not a Promise object");
141
  }
142
 
143
  document.getElementById("outputAreaLocal").innerText = JSON.stringify(result, null, 2);
 
134
  const url = URL.createObjectURL(file);
135
 
136
  const result = await classifier(url);
137
+ if (Promise.resolve(result) === result) {
138
+ console.log("result is a Promise object");
139
  } else {
140
+ console.log("result is not a Promise object");
141
  }
142
 
143
  document.getElementById("outputAreaLocal").innerText = JSON.stringify(result, null, 2);