Update refs/_imgclf.html
Browse files- refs/_imgclf.html +2 -2
refs/_imgclf.html
CHANGED
@@ -120,8 +120,8 @@
|
|
120 |
// Create a Blob URL from the file
|
121 |
const url = URL.createObjectURL(file);
|
122 |
const result = await classifier(url);
|
123 |
-
console.log(result["label"]);
|
124 |
-
document.getElementById("outputAreaLocal").innerText = JSON.stringify(result, null, 2);
|
125 |
}
|
126 |
async function classifyTopImage() {
|
127 |
const textFieldValue = document.getElementById("imageClassificationTopURLText").value.trim();
|
|
|
120 |
// Create a Blob URL from the file
|
121 |
const url = URL.createObjectURL(file);
|
122 |
const result = await classifier(url);
|
123 |
+
//console.log(result["label"]);
|
124 |
+
document.getElementById("outputAreaLocal").innerText = JSON.stringify(result[0]["label"], null, 2);
|
125 |
}
|
126 |
async function classifyTopImage() {
|
127 |
const textFieldValue = document.getElementById("imageClassificationTopURLText").value.trim();
|